Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for gradient:

 Calculate the gradient of an expression.

::

 gradient(DM ex, DM arg) -> DM
 gradient(SX ex, SX arg) -> SX
 gradient(MX ex, MX arg) -> MX

Parameters:

ex[in]: Scalar expression to take the gradient of

arg[in]: Vector expression of symbols

opts[in]: Options

Dense column vector

Extra doc: https://github.com/casadi/casadi/wiki/L_23x

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L812

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/generic_matrix.hpp#L812-L814

Extra documentation

To edit, see writing tips.

Clone this wiki locally