12template <
typename Scalar>
21 :
Base(resdl.space_, resdl, weights) {}
24 const ConstVectorRef &target,
const MatrixXs &weights)
37template <
typename Scalar>
45 const MatrixXs &weights)
49 const ConstMatrixRef &weights)
53 const ConstVectorRef &target,
54 const ConstMatrixRef &weights)
69#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
70#include "./quad-state-cost.txx"
xyz::polymorphic< Manifold > space
State dimension.
void setTarget(const ConstVectorRef &target)
QuadraticControlCostTpl(xyz::polymorphic< Manifold > space, Error resdl, const MatrixXs &weights)
const Error & residual() const
QuadraticControlCostTpl(xyz::polymorphic< Manifold > space, const ConstVectorRef &target, const ConstMatrixRef &weights)
ConstVectorRef getTarget() const
ManifoldAbstractTpl< Scalar > Manifold
QuadraticControlCostTpl(xyz::polymorphic< Manifold > space, int nu, const ConstMatrixRef &weights)
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
Quadratic composite of an underlying function.
xyz::polymorphic< StageFunction > residual_
Quadratic distance cost over the state manifold.
ManifoldAbstractTpl< Scalar > Manifold
QuadraticStateCostTpl(StateError resdl, const MatrixXs &weights)
ConstVectorRef getTarget() const
QuadraticStateCostTpl(xyz::polymorphic< Manifold > space, const int nu, const ConstVectorRef &target, const MatrixXs &weights)
const StateError & residual() const
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
void setTarget(const ConstVectorRef target)