Weighted quadratic distance \(\frac{1}{2}\|x\ominus
\bar{x}\|^2_W\) on a space.
More...
|
| QuadraticDistanceCostTpl (const polymorphic< Manifold > &space, const ConstVectorRef &target, const ConstMatrixRef &weights) |
|
| QuadraticDistanceCostTpl (const polymorphic< Manifold > &space, const ConstVectorRef &target) |
|
| QuadraticDistanceCostTpl (const polymorphic< Manifold > &space) |
|
ConstVectorRef | getTarget () const |
|
void | updateTarget (const ConstVectorRef &x) |
|
| QuadraticResidualCostTpl (FunctionPtr residual, const ConstMatrixRef &weights, const ConstVectorRef &slope, const Scalar constant=Scalar(0.)) |
|
| QuadraticResidualCostTpl (FunctionPtr residual, const ConstMatrixRef &weights, const Scalar constant=Scalar(0.)) |
|
template<typename Underlying , typename... ResidualArgs> |
| QuadraticResidualCostTpl (const ConstMatrixRef &weights, const ConstVectorRef &slope, const Scalar constant, ResidualArgs &...args) |
| Constructor using the template parameter as the underlying type of the residual.
|
|
Scalar | call (const ConstVectorRef &x) const |
| Evaluate the cost function.
|
|
void | computeGradient (const ConstVectorRef &x, VectorRef out) const |
|
void | computeHessian (const ConstVectorRef &x, MatrixRef out) const |
|
VectorXs | computeGradient (const ConstVectorRef &x) const |
|
MatrixXs | computeHessian (const ConstVectorRef &x) const |
|
| CostFunctionBaseTpl (const int nx, const int ndx) |
|
| CostFunctionBaseTpl (const ManifoldAbstractTpl< _Scalar > &manifold) |
|
VectorXs | computeGradient (const ConstVectorRef &x) const |
|
MatrixXs | computeHessian (const ConstVectorRef &x) const |
|
VectorXs | operator() (const ConstVectorRef &x) const |
| Evaluate the residual at a given point x.
|
|
void | computeJacobian (const ConstVectorRef &x, MatrixRef Jout) const |
| Jacobian matrix of the constraint function.
|
|
void | vectorHessianProduct (const ConstVectorRef &x, const ConstVectorRef &v, MatrixRef Hout) const |
| Vector-hessian product.
|
|
virtual | ~CostFunctionBaseTpl ()=default |
|
| C2FunctionTpl (const int nx, const int ndx, const int nr) |
|
| C2FunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr) |
|
| C1FunctionTpl (const int nx, const int ndx, const int nr) |
|
| C1FunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr) |
|
MatrixXs | computeJacobian (const ConstVectorRef &x) const |
| Jacobian matrix of the constraint function.
|
|
| BaseFunctionTpl (const int nx, const int ndx, const int nr) |
|
| BaseFunctionTpl (const ManifoldAbstractTpl< _Scalar > &manifold, const int nr) |
|
virtual | ~BaseFunctionTpl ()=default |
|
int | nx () const |
| Get function input vector size (representation of manifold).
|
|
int | ndx () const |
| Get input manifold's tangent space dimension.
|
|
int | nr () const |
| Get function codimension.
|
|
template<typename
_Scalar>
struct proxsuite::nlp::QuadraticDistanceCostTpl< _Scalar >
Weighted quadratic distance \(\frac{1}{2}\|x\ominus
\bar{x}\|^2_W\) on a space.
This function subclasses from QuadraticResidualCost and provides a convenient constructor. It uses ManifoldDifferenceToPoint under the hood as the input residual for the parent. This struct also exposes a method to update the target point.
Definition at line 18 of file squared-distance.hpp.