proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
proxsuite::nlp::BaseFunctionTpl< Scalar > Struct Template Referenceabstract

Base function type. More...

#include <proxsuite-nlp/function-base.hpp>

Inheritance diagram for proxsuite::nlp::BaseFunctionTpl< Scalar >:
[legend]
Collaboration diagram for proxsuite::nlp::BaseFunctionTpl< Scalar >:
[legend]

Public Types

using Scalar = _Scalar
 
- Public Types inherited from proxsuite::nlp::math_types< _Scalar >
using Scalar = _Scalar
 

Public Member Functions

 BaseFunctionTpl (const int nx, const int ndx, const int nr)
 
 BaseFunctionTpl (const ManifoldAbstractTpl< Scalar > &manifold, const int nr)
 
virtual VectorXs operator() (const ConstVectorRef &x) const =0
 Evaluate the residual at a given point x.
 
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.
 

Public Attributes

 Scalar
 
- Public Attributes inherited from proxsuite::nlp::math_types< _Scalar >
 _Scalar
 

Protected Attributes

int nx_
 
int ndx_
 
int nr_
 

Detailed Description

template<typename Scalar>
struct proxsuite::nlp::BaseFunctionTpl< Scalar >

Base function type.

Definition at line 70 of file fwd.hpp.

Member Typedef Documentation

◆ Scalar

template<typename Scalar >
using proxsuite::nlp::BaseFunctionTpl< Scalar >::Scalar = _Scalar

Definition at line 20 of file function-base.hpp.

Constructor & Destructor Documentation

◆ BaseFunctionTpl() [1/2]

template<typename Scalar >
proxsuite::nlp::BaseFunctionTpl< Scalar >::BaseFunctionTpl ( const int nx,
const int ndx,
const int nr )
inline

Definition at line 23 of file function-base.hpp.

◆ BaseFunctionTpl() [2/2]

template<typename Scalar >
proxsuite::nlp::BaseFunctionTpl< Scalar >::BaseFunctionTpl ( const ManifoldAbstractTpl< Scalar > & manifold,
const int nr )
inline

Definition at line 26 of file function-base.hpp.

◆ ~BaseFunctionTpl()

template<typename Scalar >
virtual proxsuite::nlp::BaseFunctionTpl< Scalar >::~BaseFunctionTpl ( )
virtualdefault

Member Function Documentation

◆ operator()()

◆ nx()

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::nx ( ) const
inline

Get function input vector size (representation of manifold).

Definition at line 35 of file function-base.hpp.

◆ ndx()

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::ndx ( ) const
inline

Get input manifold's tangent space dimension.

Definition at line 37 of file function-base.hpp.

◆ nr()

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::nr ( ) const
inline

Get function codimension.

Definition at line 39 of file function-base.hpp.

Member Data Documentation

◆ nx_

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::nx_
protected

Definition at line 15 of file function-base.hpp.

◆ ndx_

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::ndx_
protected

Definition at line 16 of file function-base.hpp.

◆ nr_

template<typename Scalar >
int proxsuite::nlp::BaseFunctionTpl< Scalar >::nr_
protected

Definition at line 17 of file function-base.hpp.

◆ Scalar

template<typename Scalar >
proxsuite::nlp::BaseFunctionTpl< Scalar >::Scalar

Definition at line 21 of file function-base.hpp.


The documentation for this struct was generated from the following files: