I didn't get to implementing the hessian, but a Jacobian and Gradient function work. The gradient is a generalized version of the jacobian, so it is built on top of the jacobian function.
The gradient test is very imprecise due to odd floating point inconsistencies, but it is still \~approximately\~ equal.
Hey @Akshay5312 , I just wanted to let you know that I'm a bit busy for the next few weeks but I'll look at this as soon as I get some time. Thanks for the PR!
I didn't get to implementing the hessian, but a Jacobian and Gradient function work. The gradient is a generalized version of the jacobian, so it is built on top of the jacobian function.
The gradient test is very imprecise due to odd floating point inconsistencies, but it is still \~approximately\~ equal.