Define an abstract linear function. More...
#include <roboptim/core/linear-function.hh>
Public Member Functions | |
| LinearFunction (size_type inputSize, size_type outputSize=1, std::string name=std::string()) throw () | |
| Concrete class constructor should call this constructor. | |
| virtual std::ostream & | print (std::ostream &) const throw () |
| Display the function on the specified output stream. | |
Protected Member Functions | |
| void | impl_hessian (hessian_t &hessian, const argument_t &argument, size_type functionId=0) const throw () |
| Hessian evaluation. | |
Define an abstract linear function.
Inherit from this class when implementing linear functions.
| roboptim::LinearFunction::LinearFunction | ( | size_type | inputSize, | |
| size_type | outputSize = 1, |
|||
| std::string | name = std::string () | |||
| ) | throw () |
Concrete class constructor should call this constructor.
| inputSize | function arity | |
| outputSize | result size | |
| name | function's name |
| void roboptim::LinearFunction::impl_hessian | ( | hessian_t & | hessian, | |
| const argument_t & | argument, | |||
| size_type | functionId = 0 | |||
| ) | const throw () [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::TwiceDerivableFunction.
| std::ostream & roboptim::LinearFunction::print | ( | std::ostream & | o | ) | const throw () [virtual] |
Display the function on the specified output stream.
| o | output stream used for display |
Reimplemented from roboptim::QuadraticFunction.
Reimplemented in roboptim::ConstantFunction, roboptim::IdentityFunction, and roboptim::NumericLinearFunction.