last update 20 Sep 2009 |
#include <cvrQrSolution.h>
Classes | |
class | parameters |
qrSolution parameter class More... | |
Public Member Functions | |
qrSolution () | |
qrSolution (const qrSolution &other) | |
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) |
const std::string & | name () const |
virtual qrSolution * | clone () const |
virtual qrSolution * | newInstance () const |
Protected Attributes | |
vector< double > | dcmpVec_ |
vector< double > | helpVec_ |
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.
cvr::qrSolution< T >::qrSolution | ( | ) |
default constructor
cvr::qrSolution< T >::qrSolution | ( | const qrSolution< T > & | other | ) |
copy constructor
cvr::qrSolution< T >::qrSolution | ( | const parameters & | theParams | ) |
constructor, sets the parameters
cvr::qrSolution< T >::qrSolution | ( | const matrix< T > & | theMatrix | ) |
constructor, sets the matrix A
double cvr::qrSolution< T >::apply | ( | const vector< T > & | b, | |
vector< T > & | x | |||
) |
Apply on copy.
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 cvr::qrSolution< T >::apply | ( | vector< T > & | b | ) |
Apply on place.
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 qrSolution* cvr::qrSolution< T >::clone | ( | ) | const [virtual] |
qrSolution& cvr::qrSolution< T >::copy | ( | const qrSolution< T > & | other | ) |
Copy data of "other" functor.
const parameters& cvr::qrSolution< T >::getParameters | ( | ) | const |
const std::string& cvr::qrSolution< T >::name | ( | ) | const [virtual] |
virtual qrSolution* cvr::qrSolution< T >::newInstance | ( | ) | const [virtual] |
vector<double> cvr::qrSolution< T >::dcmpVec_ [protected] |
Decomposed vector.
vector<double> cvr::qrSolution< T >::helpVec_ [protected] |
Helper vector.