Loading...
Searching...
No Matches
roboptim::SelectionById< U > Class Template Reference

Select part of a function. More...

#include <roboptim/core/operator/selection-by-id.hh>

Inheritance diagram for roboptim::SelectionById< U >:
Collaboration diagram for roboptim::SelectionById< U >:

Public Types

typedef detail::AutopromoteTrait< U >::T_type parentType_t
 
typedef boost::shared_ptr< SelectionByIdSelectionByIdShPtr_t
 

Public Member Functions

 ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (parentType_t)
 
 SelectionById (boost::shared_ptr< U > origin, std::vector< bool > selector)
 
 ~SelectionById ()
 
const boost::shared_ptr< U > & origin () const
 
boost::shared_ptr< U > & origin ()
 
void impl_compute (result_ref result, const_argument_ref x) const
 
void impl_gradient (gradient_ref gradient, const_argument_ref argument, size_type functionId=0) const
 
void impl_jacobian (jacobian_ref jacobian, const_argument_ref arg) const
 

Detailed Description

template<typename U>
class roboptim::SelectionById< U >

Select part of a function.

Template Parameters
Uinput function type.

Member Typedef Documentation

◆ parentType_t

template<typename U >
typedef detail::AutopromoteTrait<U>::T_type roboptim::SelectionById< U >::parentType_t

◆ SelectionByIdShPtr_t

template<typename U >
typedef boost::shared_ptr<SelectionById> roboptim::SelectionById< U >::SelectionByIdShPtr_t

Constructor & Destructor Documentation

◆ SelectionById()

template<typename U >
roboptim::SelectionById< U >::SelectionById ( boost::shared_ptr< U >  origin,
std::vector< bool >  selector 
)
explicit

◆ ~SelectionById()

template<typename U >
roboptim::SelectionById< U >::~SelectionById

Member Function Documentation

◆ impl_compute()

template<typename U >
void roboptim::SelectionById< U >::impl_compute ( result_ref  result,
const_argument_ref  x 
) const

◆ impl_gradient()

template<typename U >
void roboptim::SelectionById< U >::impl_gradient ( gradient_ref  gradient,
const_argument_ref  argument,
size_type  functionId = 0 
) const

◆ impl_jacobian()

template<typename U >
void roboptim::SelectionById< U >::impl_jacobian ( jacobian_ref  jacobian,
const_argument_ref  arg 
) const

◆ origin() [1/2]

template<typename U >
boost::shared_ptr< U > & roboptim::SelectionById< U >::origin ( )
inline

◆ origin() [2/2]

template<typename U >
const boost::shared_ptr< U > & roboptim::SelectionById< U >::origin ( ) const
inline

◆ ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_()

template<typename U >
roboptim::SelectionById< U >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ ( parentType_t  )