Bind some function input to a constant value. More...
#include <roboptim/core/operator/bind.hh>
Public Types | |
typedef detail::AutopromoteTrait< U > ::T_type | parentType_t |
typedef boost::shared_ptr< Bind > | BindShPtr_t |
typedef std::vector < boost::optional< value_type > > | boundValues_t |
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (parentType_t) | |
Bind (boost::shared_ptr< U > origin, const boundValues_t &selector) | |
~Bind () | |
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 |
virtual std::ostream & | print (std::ostream &o) const |
Display the function on the specified output stream. More... | |
Bind some function input to a constant value.
This allows to reduce any function input space by setting some inputs to particular values.
U | input function type. |
typedef boost::shared_ptr<Bind> roboptim::Bind< U >::BindShPtr_t |
typedef std::vector<boost::optional<value_type> > roboptim::Bind< U >::boundValues_t |
typedef detail::AutopromoteTrait<U>::T_type roboptim::Bind< U >::parentType_t |
|
explicit |
References jacobian_.
roboptim::Bind< U >::~Bind | ( | ) |
void roboptim::Bind< U >::impl_compute | ( | result_ref | result, |
const_argument_ref | x | ||
) | const |
References x_.
void roboptim::Bind< U >::impl_gradient | ( | gradient_ref | gradient, |
const_argument_ref | argument, | ||
size_type | functionId = 0 |
||
) | const |
References x_.
void roboptim::Bind< U >::impl_jacobian | ( | jacobian_ref | jacobian, |
const_argument_ref | arg | ||
) | const |
|
inline |
|
inline |
|
virtual |
Display the function on the specified output stream.
o | output stream used for display |
References roboptim::decindent(), roboptim::iendl(), and roboptim::incindent().
roboptim::Bind< U >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | parentType_t | ) |