roboptim::GenericQuadraticFunction< T > Class Template Reference

Define an abstract quadratic function. More...

#include <roboptim/core/quadratic-function.hh>

Inheritance diagram for roboptim::GenericQuadraticFunction< T >:
roboptim::GenericTwiceDifferentiableFunction< T > roboptim::GenericDifferentiableFunction< T > roboptim::GenericFunction< T > roboptim::GenericLinearFunction< T > roboptim::GenericNumericQuadraticFunction< T > roboptim::GenericConstantFunction< T > roboptim::GenericIdentityFunction< T > roboptim::GenericNumericLinearFunction< T >

List of all members.

Public Types

typedef
GenericTwiceDifferentiableFunction
< T > 
parent_t
typedef parent_t::size_type size_type
 Size type.

Public Member Functions

 ROBOPTIM_ADD_FLAG (ROBOPTIM_IS_QUADRATIC)
 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.

Detailed Description

template<typename T>
class roboptim::GenericQuadraticFunction< T >

Define an abstract quadratic function.

Inherit from this class when implementing quadratic functions.


Member Typedef Documentation

Size type.

This type is used to represent sizes, indexes, etc.

Reimplemented from roboptim::GenericFunction< T >.


Constructor & Destructor Documentation

template<typename T >
roboptim::GenericQuadraticFunction< T >::GenericQuadraticFunction ( size_type  inputSize,
size_type  outputSize = 1,
std::string  name = std::string () 
)

Concrete class constructor should call this constructor.

Parameters:
inputSizefunction arity
outputSizeresult size
namefunction's name

Member Function Documentation

template<typename T >
std::ostream & roboptim::GenericQuadraticFunction< T >::print ( std::ostream &  o) const [virtual]

Display the function on the specified output stream.

Parameters:
ooutput stream used for display
Returns:
output stream

Reimplemented from roboptim::GenericTwiceDifferentiableFunction< T >.

Reimplemented in roboptim::GenericNumericQuadraticFunction< T >, roboptim::GenericConstantFunction< T >, roboptim::GenericNumericLinearFunction< T >, roboptim::GenericIdentityFunction< T >, and roboptim::GenericLinearFunction< T >.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines