All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
roboptim::Map< U > Class Template Reference

Apply a function several times to an input vector. More...

#include <roboptim/core/operator/map.hh>

Inheritance diagram for roboptim::Map< U >:

Public Types

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

Public Member Functions

 ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (parentType_t)
 
 Map (boost::shared_ptr< U > origin, size_type repeat)
 Map operator constructor. More...
 
 ~Map ()
 
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::Map< U >

Apply a function several times to an input vector.

Input: [x_0^0 x_1^0 ... x_N^0 ... x_0^M x_1^M ... x_N^M]

Output: [f(x_0^0 x_1^0 ... x_N^0) ... f(x_0^M x_1^M ... x_N^M)]

Template Parameters
Uinput function type.

Member Typedef Documentation

template<typename U >
typedef boost::shared_ptr<Map> roboptim::Map< U >::MapShPtr_t
template<typename U >
typedef detail::AutopromoteTrait<U>::T_type roboptim::Map< U >::parentType_t

Constructor & Destructor Documentation

template<typename U >
roboptim::Map< U >::Map ( boost::shared_ptr< U >  origin,
size_type  repeat 
)
explicit

Map operator constructor.

Parameters
origininput function.
repeatnumber of times to repeat the function.

References jacobian_, result_, and x_.

template<typename U >
roboptim::Map< U >::~Map ( )

Member Function Documentation

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

References result_, and x_.

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

References x_.

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

References jacobian_, and x_.

template<typename U >
const boost::shared_ptr<U>& roboptim::Map< U >::origin ( ) const
inline
template<typename U >
boost::shared_ptr<U>& roboptim::Map< U >::origin ( )
inline
template<typename U >
roboptim::Map< U >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ ( parentType_t  )