Class Jacobian
java.lang.Object
org.wpilib.math.autodiff.Jacobian
- All Implemented Interfaces:
AutoCloseable
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 Summary
ConstructorsConstructorDescriptionJacobian(VariableMatrix variables, VariableBlock wrt) Constructs a Jacobian object.Jacobian(VariableMatrix variables, VariableMatrix wrt) Constructs a Jacobian object.Constructs a Jacobian object.Jacobian(Variable variable, VariableBlock wrt) Constructs a Jacobian object.Jacobian(Variable variable, VariableMatrix wrt) Constructs a Jacobian object. -
Method Summary
-
Constructor Details
-
Jacobian
-
Jacobian
Constructs a Jacobian object.- Parameters:
variable- Variable of which to compute the Jacobian.wrt- Vector of variables with respect to which to compute the Jacobian.
-
Jacobian
Constructs a Jacobian object.- Parameters:
variable- Variable of which to compute the Jacobian.wrt- Vector of variables with respect to which to compute the Jacobian.
-
Jacobian
Constructs a Jacobian object.- Parameters:
variables- Vector of variables of which to compute the Jacobian.wrt- Vector of variables with respect to which to compute the Jacobian.
-
Jacobian
Constructs a Jacobian object.- Parameters:
variables- Vector of variables of which to compute the Jacobian.wrt- Vector of variables with respect to which to compute the Jacobian.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable
-
get
Returns the Jacobian as a VariableMatrix.This is useful when constructing optimization problems with derivatives in them.
- Returns:
- The Jacobian as a VariableMatrix.
-
value
Evaluates the Jacobian at wrt's value.- Returns:
- The Jacobian at wrt's value.
-