18template <
typename _Scalar>
25 using Base::operator();
34 const ConstVectorRef &target)
37 if (!space->isNormalized(
target_)) {
39 "Target parameter is not a valid element of the manifold.");
#define PROXSUITE_NLP_RUNTIME_ERROR(msg)
Base definitions for function classes.
#define PROXSUITE_NLP_DYNAMIC_TYPEDEFS(Scalar)
virtual void computeJacobian(const ConstVectorRef &x, MatrixRef Jout) const=0
Twice-differentiable function, with method Jacobian and vector-hessian product evaluation.
void computeJacobian(const ConstVectorRef &x, MatrixRef Jout) const
Jacobian matrix of the constraint function.
VectorXs target_
Target point on the space.
VectorXs operator()(const ConstVectorRef &x) const
Evaluate the residual at a given point x.
ManifoldDifferenceToPoint(const polymorphic< Manifold > &space, const ConstVectorRef &target)
polymorphic< Manifold > space_