![]() |
Sleipnir C++ API
|
#include <sleipnir/autodiff/jacobian.hpp>
Public Member Functions | |
Jacobian (Variable variable, Variable wrt) noexcept | |
Jacobian (VariableMatrix variables, SleipnirMatrixLike auto wrt) noexcept | |
VariableMatrix | get () const |
const Eigen::SparseMatrix< double > & | value () |
const small_vector< SolveProfiler > & | get_profilers () const |
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.
|
inlinenoexcept |
|
inline |
Returns the Jacobian as a VariableMatrix.
This is useful when constructing optimization problems with derivatives in them.
|
inline |
Returns the profilers.
|
inline |