12template <
typename _Scalar>
struct StageFunctionTpl {
33 virtual void evaluate(
const ConstVectorRef &x,
const ConstVectorRef &u,
34 Data &data)
const = 0;
51 const ConstVectorRef &u,
Data &data)
const = 0;
62 const ConstVectorRef &u,
63 const ConstVectorRef &lbda,
113#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
114#include "aligator/core/function-abstract.txx"
std::ostream & operator<<(std::ostream &oss, const ExplicitDynamicsDataTpl< S > &self)
Base struct for function data.
StageFunctionDataTpl(const int ndx, const int nu, const int nr)
Default constructor.
const int nvar
Total number of variables.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
StageFunctionDataTpl(const StageFunctionTpl< Scalar > &model)
MatrixXs vhp_buffer_
Vector-Hessian product buffer.
MatrixXs jac_buffer_
Full Jacobian.
MatrixRef Jx_
Jacobian with respect to .
VectorXs value_
Function value.
virtual ~StageFunctionDataTpl()=default
MatrixRef Ju_
Jacobian with respect to .
Class representing ternary functions .
StageFunctionTpl(const int ndx, const int nu, const int nr)
const int nu
Control dimension.
const int nr
Function codimension.
virtual ~StageFunctionTpl()=default
virtual shared_ptr< Data > createData() const
Instantiate a Data object.
virtual void computeVectorHessianProducts(const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &lbda, Data &data) const
Compute the vector-hessian products of this function.
const int ndx1
Current state dimension.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
virtual void computeJacobians(const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0
Compute Jacobians of this function.
virtual void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const =0
Evaluate the function.