CAPD DynSys Library 5.2.0
capd::covrel::QuadraticForm< MatrixT > Class Template Reference

#include <capd/covrel/QuadraticForm.h>

Public Types

typedef MatrixT MatrixType
 
typedef MatrixType::RowVectorType VectorType
 
typedef MatrixType::ScalarType ScalarType
 

Public Member Functions

 QuadraticForm (const MatrixType &Q)
 General constructor. More...
 
 QuadraticForm (ScalarType a=capd::TypeTraits< ScalarType >::one(), ScalarType b=-capd::TypeTraits< ScalarType >::one())
 Constructor for dimension 2 Q((x,y)) = ax^2 + by^2. More...
 
ScalarType operator() (const VectorType &x)
 Value of quadratic form. More...
 
VectorType operator[] (const VectorType &x)
 
const MatrixTypegetQ () const
 
virtual std::string show (void) const
 

Protected Attributes

MatrixType m_Q
 

Member Typedef Documentation

◆ MatrixType

template<typename MatrixT >
typedef MatrixT capd::covrel::QuadraticForm< MatrixT >::MatrixType

◆ ScalarType

template<typename MatrixT >
typedef MatrixType::ScalarType capd::covrel::QuadraticForm< MatrixT >::ScalarType

◆ VectorType

template<typename MatrixT >
typedef MatrixType::RowVectorType capd::covrel::QuadraticForm< MatrixT >::VectorType

Constructor & Destructor Documentation

◆ QuadraticForm() [1/2]

template<typename MatrixT >
capd::covrel::QuadraticForm< MatrixT >::QuadraticForm ( const MatrixType Q)
inline

General constructor.

◆ QuadraticForm() [2/2]

template<typename MatrixT >
capd::covrel::QuadraticForm< MatrixT >::QuadraticForm ( ScalarType  a = capd::TypeTraits<ScalarType>::one(),
ScalarType  b = -capd::TypeTraits<ScalarType>::one() 
)
inline

Constructor for dimension 2 Q((x,y)) = ax^2 + by^2.

Member Function Documentation

◆ getQ()

template<typename MatrixT >
const MatrixType & capd::covrel::QuadraticForm< MatrixT >::getQ ( ) const
inline

◆ operator()()

template<typename MatrixT >
ScalarType capd::covrel::QuadraticForm< MatrixT >::operator() ( const VectorType x)
inline

Value of quadratic form.

◆ operator[]()

template<typename MatrixT >
VectorType capd::covrel::QuadraticForm< MatrixT >::operator[] ( const VectorType x)
inline

◆ show()

template<typename MatrixT >
virtual std::string capd::covrel::QuadraticForm< MatrixT >::show ( void  ) const
inlinevirtual

Member Data Documentation

◆ m_Q

template<typename MatrixT >
MatrixType capd::covrel::QuadraticForm< MatrixT >::m_Q
protected