CVR-Lib last update 20 Sep 2009

cvr::decompositionSolution< T > Class Template Reference
[-LibFormatRequired Classes imported from the LTI-Lib-1.]

Abstract base class for all lti linear equation system solution functors using matrix decomposition to solve Ax=b. More...

#include <cvrDecompositionSolution.h>

Inheritance diagram for cvr::decompositionSolution< T >:

Inheritance graph
[legend]
Collaboration diagram for cvr::decompositionSolution< T >:

Collaboration graph
[legend]

List of all members.

Classes

class  parameters
 Parameters of class decompositionSolution. More...

Public Member Functions

 decompositionSolution ()
 decompositionSolution (const matrix< T > &theMatrix)
virtual ~decompositionSolution ()
const parametersgetParameters () const
decompositionSolution< T > & copy (const decompositionSolution< T > &other)
const std::string & name () const
virtual bool use (matrix< T > &A)
virtual bool attach (matrix< T > &A)
virtual bool set (const matrix< T > &A)

Protected Attributes

matrix< T > systemMatrix_
bool decomposed_
matrix< T > dcmpMat_


Detailed Description

template<class T>
class cvr::decompositionSolution< T >

Abstract base class for all lti linear equation system solution functors using matrix decomposition to solve Ax=b.

Methods to give the matrix A are provided.


Constructor & Destructor Documentation

template<class T>
cvr::decompositionSolution< T >::decompositionSolution (  ) 

Default constructor.

template<class T>
cvr::decompositionSolution< T >::decompositionSolution ( const matrix< T > &  theMatrix  ) 

Constructor, sets the matrix A.

template<class T>
virtual cvr::decompositionSolution< T >::~decompositionSolution (  )  [virtual]

Destructor.


Member Function Documentation

template<class T>
virtual bool cvr::decompositionSolution< T >::attach ( matrix< T > &  A  )  [virtual]

Use the given matrix and take care of its memory management.

The given matrix will be empty after calling this method.

template<class T>
decompositionSolution<T>& cvr::decompositionSolution< T >::copy ( const decompositionSolution< T > &  other  ) 

Copy data of "other" functor.

template<class T>
const parameters& cvr::decompositionSolution< T >::getParameters (  )  const

Returns the current parameters.

Reimplemented from cvr::linearAlgebraFunctor.

Reimplemented in cvr::qrSolution< T >.

template<class T>
const std::string& cvr::decompositionSolution< T >::name (  )  const [virtual]

Returns the name of this class.

Implements cvr::functor.

Reimplemented in cvr::luSolution< T >, and cvr::qrSolution< T >.

template<class T>
virtual bool cvr::decompositionSolution< T >::set ( const matrix< T > &  A  )  [virtual]

Copy the given matrix for internal use.

template<class T>
virtual bool cvr::decompositionSolution< T >::use ( matrix< T > &  A  )  [virtual]

Use the given matrix as is.

This matrix will not be copied and you have to ensure that the given instance exists as long as this functor uses it.


Member Data Documentation

template<class T>
matrix<T> cvr::decompositionSolution< T >::dcmpMat_ [protected]

Decomposed matrix.

template<class T>
bool cvr::decompositionSolution< T >::decomposed_ [protected]

Flag to indicate if the system matrix has been decomposed.

template<class T>
matrix<T> cvr::decompositionSolution< T >::systemMatrix_ [protected]

Matrix A.

The linear system to be solved is Ax=b.

Default value: empty matrix.


The documentation for this class was generated from the following file:

Generated on Sun Sep 20 22:08:56 2009 for CVR-Lib by Doxygen 1.5.8