aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::detail::slice_impl_tpl< Base > Struct Template Reference

Slicing and indexing of a function's output. More...

#include <aligator/modelling/function-xpr-slice.hpp>

Collaboration diagram for aligator::detail::slice_impl_tpl< Base >:
[legend]

Public Types

using Scalar = typename Base::Scalar
 
using BaseData = StageFunctionDataTpl<Scalar>
 
using Data = FunctionSliceDataTpl<Scalar>
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 slice_impl_tpl (xyz::polymorphic< Base > func, std::vector< int > const &indices)
 
 slice_impl_tpl (xyz::polymorphic< Base > func, int idx)
 

Public Attributes

xyz::polymorphic< Base > func
 
std::vector< int > indices
 

Protected Member Functions

template<typename... Args>
void evaluate_impl (BaseData &data, Args &&...args) const
 
template<typename... Args>
void computeJacobians_impl (BaseData &data, Args &&...args) const
 
template<typename... Args>
void computeVectorHessianProducts_impl (BaseData &data, const ConstVectorRef &lbda, Args &&...args) const
 

Detailed Description

template<typename Base>
struct aligator::detail::slice_impl_tpl< Base >

Slicing and indexing of a function's output.

Definition at line 119 of file function-xpr-slice.hpp.

Member Typedef Documentation

◆ Scalar

template<typename Base >
using aligator::detail::slice_impl_tpl< Base >::Scalar = typename Base::Scalar

Definition at line 120 of file function-xpr-slice.hpp.

◆ BaseData

template<typename Base >
using aligator::detail::slice_impl_tpl< Base >::BaseData = StageFunctionDataTpl<Scalar>

Definition at line 122 of file function-xpr-slice.hpp.

◆ Data

template<typename Base >
using aligator::detail::slice_impl_tpl< Base >::Data = FunctionSliceDataTpl<Scalar>

Definition at line 124 of file function-xpr-slice.hpp.

Constructor & Destructor Documentation

◆ slice_impl_tpl() [1/2]

template<typename Base >
aligator::detail::slice_impl_tpl< Base >::slice_impl_tpl ( xyz::polymorphic< Base > func,
std::vector< int > const & indices )

◆ slice_impl_tpl() [2/2]

template<typename Base >
aligator::detail::slice_impl_tpl< Base >::slice_impl_tpl ( xyz::polymorphic< Base > func,
int idx )

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename Base >
aligator::detail::slice_impl_tpl< Base >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ evaluate_impl()

template<typename Base >
template<typename... Args>
void aligator::detail::slice_impl_tpl< Base >::evaluate_impl ( BaseData & data,
Args &&... args ) const
protected

◆ computeJacobians_impl()

template<typename Base >
template<typename... Args>
void aligator::detail::slice_impl_tpl< Base >::computeJacobians_impl ( BaseData & data,
Args &&... args ) const
protected

◆ computeVectorHessianProducts_impl()

template<typename Base >
template<typename... Args>
void aligator::detail::slice_impl_tpl< Base >::computeVectorHessianProducts_impl ( BaseData & data,
const ConstVectorRef & lbda,
Args &&... args ) const
protected

Member Data Documentation

◆ func

template<typename Base >
xyz::polymorphic<Base> aligator::detail::slice_impl_tpl< Base >::func

Definition at line 126 of file function-xpr-slice.hpp.

◆ indices

template<typename Base >
std::vector<int> aligator::detail::slice_impl_tpl< Base >::indices

Definition at line 128 of file function-xpr-slice.hpp.


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