Define an abstract linear function. More...
#include <roboptim/core/linear-function.hh>
Public Member Functions | |
ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericQuadraticFunction< T >) | |
GenericLinearFunction (size_type inputSize, size_type outputSize=1, std::string name=std::string()) | |
Concrete class constructor should call this constructor. More... | |
virtual std::ostream & | print (std::ostream &) const |
Display the function on the specified output stream. More... | |
Protected Member Functions | |
void | impl_hessian (hessian_ref hessian, const_argument_ref argument, size_type functionId=0) const |
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 |
|
protected |
|
virtual |
Display the function on the specified output stream.
o | output stream used for display |
Reimplemented in roboptim::GenericConstantFunction< T >, and roboptim::GenericIdentityFunction< T >.
roboptim::GenericLinearFunction< T >::ROBOPTIM_TWICE_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericQuadraticFunction< T > | ) |