LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::luSolution< T > Class Template Reference

LU solution functor. More...

#include <ltiEquationSystem.h>

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

List of all members.

Public Member Functions

 luSolution ()
 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)
virtual functorclone () const
virtual const char * getTypeName () const

Detailed Description

template<class T>
class lti::luSolution< T >

LU solution functor.

Solves the linear equation Ax=b using LU decomposition.


Constructor & Destructor Documentation

template<class T >
lti::luSolution< T >::luSolution (  )  [inline]

default constructor

template<class T >
lti::luSolution< T >::luSolution ( const parameters theParams  )  [inline]

constructor, sets the parameters

See also:
decompositionSolution::parameters
template<class T >
lti::luSolution< T >::luSolution ( const matrix< T > &  theMatrix  )  [inline]

constructor, sets the matrix A


Member Function Documentation

template<class T >
bool lti::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 lti::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 lti::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 lti::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 functor* lti::luSolution< T >::clone (  )  const [inline, virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

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

copy data of "other" functor.

Reimplemented from lti::decompositionSolution< T >.

template<class T >
virtual const char* lti::luSolution< T >::getTypeName ( void   )  const [inline, virtual]

returns the name of this type

Reimplemented from lti::decompositionSolution< T >.


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

Generated on Sat Apr 10 15:28:18 2010 for LTI-Lib by Doxygen 1.6.1