latest version v1.9 - last update 10 Apr 2010 |
#include <ltiEquationSystem.h>
Classes | |
class | parameters |
qrSolution parameter class More... | |
Public Member Functions | |
qrSolution () | |
qrSolution (const parameters &theParams) | |
qrSolution (const matrix< T > &theMatrix) | |
const parameters & | getParameters () const |
double | apply (vector< T > &b) |
double | apply (const vector< T > &b, vector< T > &x) |
qrSolution & | copy (const qrSolution &other) |
virtual functor * | clone () const |
virtual const char * | getTypeName () const |
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.
lti::qrSolution< T >::qrSolution | ( | ) | [inline] |
default constructor
References lti::functor::setParameters().
lti::qrSolution< T >::qrSolution | ( | const parameters & | theParams | ) | [inline] |
constructor, sets the parameters
lti::qrSolution< T >::qrSolution | ( | const matrix< T > & | theMatrix | ) | [inline] |
constructor, sets the matrix A
References lti::functor::setParameters().
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().
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().
virtual functor* lti::qrSolution< T >::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the functor.
Implements lti::functor.
qrSolution& lti::qrSolution< T >::copy | ( | const qrSolution< T > & | other | ) |
copy data of "other" functor.
Reimplemented from lti::decompositionSolution< T >.
const parameters& lti::qrSolution< T >::getParameters | ( | ) | const |
returns the current parameters.
Reimplemented from lti::decompositionSolution< T >.
virtual const char* lti::qrSolution< T >::getTypeName | ( | void | ) | const [inline, virtual] |
returns the name of this type
Reimplemented from lti::decompositionSolution< T >.