Represents unary functions of the form \(f(x)\), with no control (or next-state) arguments.
More...
|
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) |
|
virtual void | evaluate (const ConstVectorRef &x, Data &data) const =0 |
|
virtual void | computeJacobians (const ConstVectorRef &x, Data &data) const =0 |
|
virtual void | computeVectorHessianProducts (const ConstVectorRef &, const ConstVectorRef &, Data &) const |
|
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &, Data &data) const override |
| Evaluate the function.
|
|
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &, Data &data) const override |
| Compute Jacobians of this function.
|
|
void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &, const ConstVectorRef &lbda, Data &data) const override |
| Compute the vector-hessian products of this function.
|
|
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) |
|
| StageFunctionTpl (const int ndx1, const int nu, const int ndx2, const int nr) |
|
| StageFunctionTpl (const int ndx, const int nu, const int nr) |
| Constructor where ndx2 = ndx1.
|
|
virtual | ~StageFunctionTpl ()=default |
|
virtual shared_ptr< Data > | createData () const |
| Instantiate a Data object.
|
|
template<typename _Scalar>
struct aligator::UnaryFunctionTpl< _Scalar >
Represents unary functions of the form \(f(x)\), with no control (or next-state) arguments.
Definition at line 12 of file unary-function.hpp.
template<typename _Scalar >
void aligator::UnaryFunctionTpl< _Scalar >::computeJacobians |
( |
const ConstVectorRef & | x, |
|
|
const ConstVectorRef & | u, |
|
|
const ConstVectorRef & | y, |
|
|
Data & | data ) const |
|
inlineoverridevirtual |
Compute Jacobians of this function.
This computes the Jacobians \(
(\frac{\partial f}{\partial x},
\frac{\partial f}{\partial u},
\frac{\partial f}{\partial x'})
\)
- Parameters
-
x | Current state. |
u | Controls. |
y | Next state. |
data | Data holding struct. |
Implements aligator::StageFunctionTpl< _Scalar >.
Definition at line 31 of file unary-function.hpp.