Both ForwardDiff and ReverseDiff source solve a different problem (taking the derivative of a user-supplied function f(x)). The Matlab and NumPy gradient functions, instead, take an array (not a function) and compute differences of adjacent elements of the array, returning a new array.
- [julia-users] Vector Field operators (gradient, divergen... MLicer
- [julia-users] Re: Vector Field operators (gradient,... Steven G. Johnson
- [julia-users] Re: Vector Field operators (gradient,... Chris Rackauckas
- [julia-users] Re: Vector Field operators (gradi... Christoph Ortner
- [julia-users] Re: Vector Field operators (g... Steven G. Johnson
- Re: [julia-users] Re: Vector Field oper... Matjaz Licer
