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()) | |
| Concrete class constructor should call this constructor. | |
| virtual std::ostream & | print (std::ostream &) const |
| 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 |
| 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 >.
| roboptim::GenericQuadraticFunction< T >::GenericQuadraticFunction | ( | 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 |
| std::ostream & roboptim::GenericQuadraticFunction< T >::print | ( | std::ostream & | o | ) | const [virtual] |
Display the function on the specified output stream.
| o | output stream used for display |
Reimplemented from roboptim::GenericTwiceDifferentiableFunction< T >.
Reimplemented in roboptim::GenericNumericQuadraticFunction< T >, roboptim::GenericConstantFunction< T >, roboptim::GenericNumericLinearFunction< T >, roboptim::GenericIdentityFunction< T >, and roboptim::GenericLinearFunction< T >.