Multiply by a constant scalar value. More...
#include <roboptim/core/operator/scalar.hh>
 
  
 | Public Types | |
| typedef detail::AutopromoteTrait< U > ::T_type | parentType_t | 
| typedef parentType_t::traits_t | traits_t | 
| typedef boost::shared_ptr< Scalar > | ScalarShPtr_t | 
| Public Member Functions | |
| ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericTwiceDifferentiableFunction< traits_t >) | |
| Scalar (boost::shared_ptr< U > fct, value_type scalar) | |
| Create a scalar operator.  More... | |
| ~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 | 
| void | impl_hessian (hessian_ref hessian, const_argument_ref x, size_type functionId=0) const | 
| virtual std::ostream & | print (std::ostream &o) const | 
| Display the function on the specified output stream.  More... | |
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 | 
| typedef parentType_t::traits_t roboptim::Scalar< U >::traits_t | 
| 
 | explicit | 
Create a scalar operator.
| 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_hessian | ( | hessian_ref | hessian, | 
| const_argument_ref | x, | ||
| size_type | functionId = 0 | ||
| ) | const | 
| void roboptim::Scalar< 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::Scalar< U >::ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericTwiceDifferentiableFunction< traits_t > | ) |