Multiply by a constant scalar value. More...
#include <roboptim/core/filter/scalar.hh>
Public Types | |
typedef detail::AutopromoteTrait< U > ::T_type | parentType_t |
typedef boost::shared_ptr< Scalar > | ScalarShPtr_t |
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (parentType_t) | |
Scalar (boost::shared_ptr< U > fct, value_type scalar) | |
Create a scalar filter. | |
~Scalar () | |
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 |
Multiply by a constant scalar value.
U | input function type. |
typedef detail::AutopromoteTrait<U>::T_type roboptim::Scalar< U >::parentType_t |
typedef boost::shared_ptr<Scalar> roboptim::Scalar< U >::ScalarShPtr_t |
roboptim::Scalar< U >::Scalar | ( | boost::shared_ptr< U > | fct, |
value_type | scalar | ||
) | [explicit] |
Create a scalar filter.
fct | input function. |
scalar | scalar value. |
roboptim::Scalar< U >::~Scalar | ( | ) |
void roboptim::Scalar< U >::impl_compute | ( | result_ref | result, |
const_argument_ref | x | ||
) | const |
void roboptim::Scalar< U >::impl_gradient | ( | gradient_ref | gradient, |
const_argument_ref | argument, | ||
size_type | functionId = 0 |
||
) | const |
void roboptim::Scalar< U >::impl_jacobian | ( | jacobian_ref | jacobian, |
const_argument_ref | arg | ||
) | const |
const boost::shared_ptr<U>& roboptim::Scalar< U >::origin | ( | ) | const [inline] |
boost::shared_ptr<U>& roboptim::Scalar< U >::origin | ( | ) | [inline] |
roboptim::Scalar< U >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | parentType_t | ) |