Select a block of a function's output. More...
#include <roboptim/core/operator/selection.hh>
Public Types | |
typedef detail::AutopromoteTrait< U > ::T_type | parentType_t |
typedef boost::shared_ptr < Selection > | SelectionShPtr_t |
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (parentType_t) | |
Selection (boost::shared_ptr< U > fct, size_type start, size_type size) | |
Create a selection given an input function and a block. More... | |
~Selection () | |
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 |
Select a block of a function's output.
The selected block is a range given by a start and a size.
U | input function type. |
typedef detail::AutopromoteTrait<U>::T_type roboptim::Selection< U >::parentType_t |
typedef boost::shared_ptr<Selection> roboptim::Selection< U >::SelectionShPtr_t |
|
explicit |
roboptim::Selection< U >::~Selection | ( | ) |
void roboptim::Selection< U >::impl_compute | ( | result_ref | result, |
const_argument_ref | x | ||
) | const |
References result_.
void roboptim::Selection< U >::impl_gradient | ( | gradient_ref | gradient, |
const_argument_ref | argument, | ||
size_type | functionId = 0 |
||
) | const |
void roboptim::Selection< U >::impl_jacobian | ( | jacobian_ref | jacobian, |
const_argument_ref | arg | ||
) | const |
References jacobian_.
|
inline |
|
inline |
roboptim::Selection< U >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | parentType_t | ) |