aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::python::PyUnaryFunction< UFunction > Struct Template Referencefinal

#include </home/runner/work/aligator/aligator/bindings/python/include/aligator/python/functions.hpp>

Inheritance diagram for aligator::python::PyUnaryFunction< UFunction >:
[legend]
Collaboration diagram for aligator::python::PyUnaryFunction< UFunction >:
[legend]

Public Types

using Scalar = typename UFunction::Scalar
 
using Data = StageFunctionDataTpl<Scalar>
 
- Public Types inherited from aligator::UnaryFunctionTpl< Scalar >
using Scalar = _Scalar
 
using Base = StageFunctionTpl<Scalar>
 
using Data = StageFunctionDataTpl<Scalar>
 
- Public Types inherited from aligator::StageFunctionTpl< _Scalar >
using Scalar
 
using Data
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 ALIGATOR_UNARY_FUNCTION_INTERFACE (Scalar)
 
void evaluate (const ConstVectorRef &x, Data &data) const override
 
void computeJacobians (const ConstVectorRef &x, Data &data) const override
 
void computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &lbda, Data &data) const override
 
void default_computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &lbda, Data &data) const
 
shared_ptr< DatacreateData () const override
 Instantiate a Data object.
 
shared_ptr< Datadefault_createData () const
 
- Public Member Functions inherited from aligator::UnaryFunctionTpl< Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
void evaluate (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override
 
void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override
 
void computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &lbda, Data &data) const override
 
- Public Member Functions inherited from aligator::StageFunctionTpl< _Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar)
 
 StageFunctionTpl (const int ndx, const int nu, const int nr)
 
virtual void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0
 Evaluate the function.
 
virtual void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0
 Compute Jacobians of this function.
 
virtual void computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &lbda, Data &data) const
 Compute the vector-hessian products of this function.
 
virtual ~StageFunctionTpl ()=default
 

Additional Inherited Members

- Public Attributes inherited from aligator::StageFunctionTpl< _Scalar >
const int ndx1
 Current state dimension.
 
const int nu
 Control dimension.
 
const int nr
 Function codimension.
 

Detailed Description

template<typename UFunction = context::UnaryFunction>
struct aligator::python::PyUnaryFunction< UFunction >

Definition at line 65 of file functions.hpp.

Member Typedef Documentation

◆ Scalar

template<typename UFunction = context::UnaryFunction>
using aligator::python::PyUnaryFunction< UFunction >::Scalar = typename UFunction::Scalar

Definition at line 69 of file functions.hpp.

◆ Data

template<typename UFunction = context::UnaryFunction>
using aligator::python::PyUnaryFunction< UFunction >::Data = StageFunctionDataTpl<Scalar>

Definition at line 75 of file functions.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename UFunction = context::UnaryFunction>
aligator::python::PyUnaryFunction< UFunction >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ ALIGATOR_UNARY_FUNCTION_INTERFACE()

template<typename UFunction = context::UnaryFunction>
aligator::python::PyUnaryFunction< UFunction >::ALIGATOR_UNARY_FUNCTION_INTERFACE ( Scalar )

◆ evaluate()

template<typename UFunction = context::UnaryFunction>
void aligator::python::PyUnaryFunction< UFunction >::evaluate ( const ConstVectorRef & x,
Data & data ) const
inlineoverridevirtual

Implements aligator::UnaryFunctionTpl< Scalar >.

Definition at line 79 of file functions.hpp.

◆ computeJacobians()

template<typename UFunction = context::UnaryFunction>
void aligator::python::PyUnaryFunction< UFunction >::computeJacobians ( const ConstVectorRef & x,
Data & data ) const
inlineoverridevirtual

Implements aligator::UnaryFunctionTpl< Scalar >.

Definition at line 83 of file functions.hpp.

◆ computeVectorHessianProducts()

template<typename UFunction = context::UnaryFunction>
void aligator::python::PyUnaryFunction< UFunction >::computeVectorHessianProducts ( const ConstVectorRef & x,
const ConstVectorRef & lbda,
Data & data ) const
inlineoverridevirtual

Reimplemented from aligator::UnaryFunctionTpl< Scalar >.

Definition at line 88 of file functions.hpp.

◆ default_computeVectorHessianProducts()

template<typename UFunction = context::UnaryFunction>
void aligator::python::PyUnaryFunction< UFunction >::default_computeVectorHessianProducts ( const ConstVectorRef & x,
const ConstVectorRef & lbda,
Data & data ) const
inline

Definition at line 95 of file functions.hpp.

◆ createData()

template<typename UFunction = context::UnaryFunction>
shared_ptr< Data > aligator::python::PyUnaryFunction< UFunction >::createData ( ) const
inlineoverridevirtual

Instantiate a Data object.

Reimplemented from aligator::StageFunctionTpl< _Scalar >.

Definition at line 101 of file functions.hpp.

◆ default_createData()

template<typename UFunction = context::UnaryFunction>
shared_ptr< Data > aligator::python::PyUnaryFunction< UFunction >::default_createData ( ) const
inline

Definition at line 105 of file functions.hpp.


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