aligator  0.16.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
Loading...
Searching...
No Matches
aligator::python::PyUnaryFunction< UFunction > Struct Template Referencefinal

#include </build/source/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
using Base
using Data
Public Types inherited from aligator::StageFunctionTpl< Scalar >
using Scalar
using Data
Public Types inherited from aligator::python::PolymorphicWrapper< PyUnaryFunction< context::UnaryFunction >, context::UnaryFunction >
using PyBase
using Base

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
 Evaluate the function.
void computeJacobians (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override
 Compute Jacobians of this function.
void computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &lbda, Data &data) const override
 Compute the vector-hessian products of this function.
Public Member Functions inherited from aligator::StageFunctionTpl< Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 StageFunctionTpl (const int ndx, const int nu, const int nr)
virtual ~StageFunctionTpl ()=default
Public Member Functions inherited from aligator::python::PolymorphicWrapper< PyUnaryFunction< context::UnaryFunction >, context::UnaryFunction >
 PolymorphicWrapper ()=default
PolymorphicWrapperoperator= (const PolymorphicWrapper &o)

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 60 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 63 of file functions.hpp.

◆ Data

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

Definition at line 69 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 73 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 77 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 82 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 89 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 95 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 99 of file functions.hpp.


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