Sleipnir Python API
|
Public Member Functions | |
None | __init__ (self, VariableMatrix variables, VariableMatrix wrt) |
VariableMatrix | get (self) |
scipy.sparse.csc_matrix[float] | value (self) |
This class calculates the Jacobian of a vector of variables with respect to a vector of variables. The Jacobian is only recomputed if the variable expression is quadratic or higher order.
None jormungandr.autodiff.Jacobian.__init__ | ( | self, | |
VariableMatrix | variables, | ||
VariableMatrix | wrt | ||
) |
Constructs a Jacobian object. Parameter ``variables``: Vector of variables of which to compute the Jacobian. Parameter ``wrt``: Vector of variables with respect to which to compute the Jacobian.
VariableMatrix jormungandr.autodiff.Jacobian.get | ( | self | ) |
Returns the Jacobian as a VariableMatrix. This is useful when constructing optimization problems with derivatives in them.
scipy.sparse.csc_matrix[float] jormungandr.autodiff.Jacobian.value | ( | self | ) |
Evaluates the Jacobian at wrt's value.