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

lti::qrSolution< T > Class Template Reference

QR solution functor. More...

#include <ltiEquationSystem.h>

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

List of all members.

Classes

class  parameters
 qrSolution parameter class More...

Public Member Functions

 qrSolution ()
 qrSolution (const parameters &theParams)
 qrSolution (const matrix< T > &theMatrix)
const parametersgetParameters () const
double apply (vector< T > &b)
double apply (const vector< T > &b, vector< T > &x)
qrSolutioncopy (const qrSolution &other)
virtual functorclone () const
virtual const char * getTypeName () const

Detailed Description

template<class T>
class lti::qrSolution< T >

QR solution functor.

Solves the linear equation Ax=b as a least-squares problem using QR decomposition A=QR (Householder transformation) of the given (m,n)-matrix A.

See also:
decompositionSolution::parameters

Constructor & Destructor Documentation

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

default constructor

References lti::functor::setParameters().

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

constructor, sets the parameters

template<class T >
lti::qrSolution< T >::qrSolution ( const matrix< T > &  theMatrix  )  [inline]

constructor, sets the matrix A

References lti::functor::setParameters().


Member Function Documentation

template<class T >
double lti::qrSolution< T >::apply ( const vector< T > &  b,
vector< T > &  x 
)

onCopy version of apply.

Solves the least-squares problem Ax=b and returns the residuum if computeResiduum==true.

WARNING: 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 >
double lti::qrSolution< T >::apply ( vector< T > &  b  ) 

onPlace version of apply.

Solves the least-squares problem Ax=b and returns the residuum if computeResiduum==true.

WARNING: 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::qrSolution< T >::clone (  )  const [inline, virtual]

returns a pointer to a clone of the functor.

Implements lti::functor.

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

copy data of "other" functor.

Reimplemented from lti::decompositionSolution< T >.

template<class T >
const parameters& lti::qrSolution< T >::getParameters (  )  const

returns the current parameters.

Reimplemented from lti::decompositionSolution< T >.

template<class T >
virtual const char* lti::qrSolution< 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