Define an abstract linear function. More...
#include <roboptim/core/linear-function.hh>
Public Member Functions | |
| ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericQuadraticFunction< T >) | |
| ROBOPTIM_ADD_FLAG (ROBOPTIM_IS_LINEAR) | |
| GenericLinearFunction (size_type inputSize, size_type outputSize=1, std::string name=std::string()) | |
| Concrete class constructor should call this constructor. | |
| virtual std::ostream & | print (std::ostream &) const |
| Display the function on the specified output stream. | |
Protected Member Functions | |
| void | impl_hessian (hessian_ref hessian, const_argument_ref argument, size_type functionId=0) const |
| Hessian evaluation. | |
Define an abstract linear function.
Inherit from this class when implementing linear functions.
| roboptim::GenericLinearFunction< T >::GenericLinearFunction | ( | size_type | inputSize, |
| size_type | outputSize = 1, |
||
| std::string | name = std::string () |
||
| ) |
Concrete class constructor should call this constructor.
| inputSize | function arity |
| outputSize | result size |
| name | function's name |
| void roboptim::GenericLinearFunction< T >::impl_hessian | ( | hessian_ref | hessian, |
| const_argument_ref | argument, | ||
| size_type | functionId = 0 |
||
| ) | const [protected, virtual] |
Hessian evaluation.
Compute the hessian, has to be implemented in concrete classes. The hessian is computed for a specific sub-function which id is passed through the functionId argument.
| hessian | hessian will be stored here |
| argument | point where the hessian will be computed |
| functionId | evaluated function id in the split representation |
Implements roboptim::GenericTwiceDifferentiableFunction< T >.
| std::ostream & roboptim::GenericLinearFunction< T >::print | ( | std::ostream & | o | ) | const [virtual] |
Display the function on the specified output stream.
| o | output stream used for display |
Reimplemented from roboptim::GenericQuadraticFunction< T >.
Reimplemented in roboptim::GenericConstantFunction< T >, roboptim::GenericNumericLinearFunction< T >, and roboptim::GenericIdentityFunction< T >.
| roboptim::GenericLinearFunction< T >::ROBOPTIM_ADD_FLAG | ( | ROBOPTIM_IS_LINEAR | ) |
| roboptim::GenericLinearFunction< T >::ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericQuadraticFunction< T > | ) |