Define an abstract quadratic function. More...
#include <roboptim/core/quadratic-function.hh>
Public Types | |
typedef GenericTwiceDifferentiableFunction < T > | parent_t |
typedef parent_t::size_type | size_type |
Size type. | |
Public Member Functions | |
GenericQuadraticFunction (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. |
Define an abstract quadratic function.
Inherit from this class when implementing quadratic functions.
typedef GenericTwiceDifferentiableFunction<T> roboptim::GenericQuadraticFunction< T >::parent_t |
Reimplemented in roboptim::GenericLinearFunction< T >.
typedef parent_t::size_type roboptim::GenericQuadraticFunction< T >::size_type |
Size type.
This type is used to represent sizes, indexes, etc.
Reimplemented from roboptim::GenericFunction< T >.
Reimplemented in roboptim::GenericLinearFunction< T >.
roboptim::GenericQuadraticFunction< T >::GenericQuadraticFunction | ( | 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 |
std::ostream & roboptim::GenericQuadraticFunction< T >::print | ( | std::ostream & | o | ) | const throw () [virtual] |
Display the function on the specified output stream.
o | output stream used for display |
Reimplemented from roboptim::GenericTwiceDifferentiableFunction< T >.
Reimplemented in roboptim::GenericLinearFunction< T >, roboptim::NumericQuadraticFunction, roboptim::GenericNumericLinearFunction< T >, roboptim::IdentityFunction, and roboptim::ConstantFunction.