CVR-Lib last update 20 Sep 2009

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

LU solution functor. More...

#include <cvrLuSolution.h>

Inheritance diagram for cvr::luSolution< T >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 luSolution ()
 luSolution (const luSolution< T > &other)
 luSolution (const parameters &theParams)
 luSolution (const matrix< T > &theMatrix)
bool apply (vector< T > &b)
bool apply (const vector< T > &b, vector< T > &x)
bool apply (matrix< T > &B)
bool apply (const matrix< T > &B, matrix< T > &X)
luSolutioncopy (const luSolution &other)
const std::string & name () const
virtual luSolutionclone () const
virtual luSolutionnewInstance () const


Detailed Description

template<class T>
class cvr::luSolution< T >

LU solution functor.

Solves the linear equation Ax=b using LU decomposition.


Constructor & Destructor Documentation

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

default constructor

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

copy constructor

template<class T>
cvr::luSolution< T >::luSolution ( const parameters theParams  ) 

constructor, sets the parameters

See also:
decompositionSolution::parameters

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

constructor, sets the matrix A


Member Function Documentation

template<class T>
bool cvr::luSolution< T >::apply ( const matrix< T > &  B,
matrix< T > &  X 
)

onCopy version of apply.

Solves the set of n linear equations A x=b where x is the i-th _column_ vector of X and b the i-th _column_ vector of B. For use with multiple right sides b of a set of equation systems Ax=b, the matrix decomposition is computed only on calling apply the first time. After that the existing decomposition will be used until calling setParameters.

template<class T>
bool cvr::luSolution< T >::apply ( matrix< T > &  B  ) 

onPlace version of apply.

Solves the set of n linear equations A x=b where x is the i-th _column_ vector of X and b the i-th _column_ vector of B. For use with multiple right sides b of a set of equation systems Ax=b, the matrix decomposition is computed only on calling apply the first time. After that the existing decomposition will be used until calling setParameters.

template<class T>
bool cvr::luSolution< T >::apply ( const vector< T > &  b,
vector< T > &  x 
)

onCopy version of apply.

Solves the set of n linear equations Ax=b. For use with multiple right sides b of a set of equation systems Ax=b, the matrix decomposition is computed only on calling apply the first time. After that the existing decomposition will be used until calling setParameters.

template<class T>
bool cvr::luSolution< T >::apply ( vector< T > &  b  ) 

onPlace version of apply.

Solves the set of n linear equations Ax=b. For use with multiple right sides b of a set of equation systems Ax=b, the matrix decomposition is computed only on calling apply the first time. After that the existing decomposition will be used until calling setParameters.

template<class T>
virtual luSolution* cvr::luSolution< T >::clone (  )  const [virtual]

Returns a pointer to a clone of this functor.

Implements cvr::functor.

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

copy data of "other" functor.

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

Returns the name of this class.

Reimplemented from cvr::decompositionSolution< T >.

template<class T>
virtual luSolution* cvr::luSolution< T >::newInstance (  )  const [virtual]

Returns a pointer to a new instance of this functor.

Implements cvr::functor.


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

Generated on Sun Sep 20 22:09:00 2009 for CVR-Lib by Doxygen 1.5.8