last update 20 Sep 2009 |
#include <cvrLuSolution.h>
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) |
luSolution & | copy (const luSolution &other) |
const std::string & | name () const |
virtual luSolution * | clone () const |
virtual luSolution * | newInstance () const |
Solves the linear equation Ax=b using LU decomposition.
cvr::luSolution< T >::luSolution | ( | ) |
default constructor
cvr::luSolution< T >::luSolution | ( | const luSolution< T > & | other | ) |
copy constructor
cvr::luSolution< T >::luSolution | ( | const parameters & | theParams | ) |
cvr::luSolution< T >::luSolution | ( | const matrix< T > & | theMatrix | ) |
constructor, sets the matrix A
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.
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.
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.
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.
virtual luSolution* cvr::luSolution< T >::clone | ( | ) | const [virtual] |
luSolution& cvr::luSolution< T >::copy | ( | const luSolution< T > & | other | ) |
copy data of "other" functor.
const std::string& cvr::luSolution< T >::name | ( | ) | const [virtual] |
virtual luSolution* cvr::luSolution< T >::newInstance | ( | ) | const [virtual] |