Sleipnir Python API
Loading...
Searching...
No Matches
jormungandr.autodiff.Jacobian Class Reference

Public Member Functions

None __init__ (self, VariableMatrix variables, VariableMatrix wrt)
 
VariableMatrix get (self)
 
scipy.sparse.csc_matrix[float] value (self)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ get()

VariableMatrix jormungandr.autodiff.Jacobian.get (   self)
Returns the Jacobian as a VariableMatrix.

This is useful when constructing optimization problems with
derivatives in them.

◆ value()

scipy.sparse.csc_matrix[float] jormungandr.autodiff.Jacobian.value (   self)
Evaluates the Jacobian at wrt's value.

The documentation for this class was generated from the following file: