last update 20 Sep 2009 |
#include <cvrSVD.h>
Public Member Functions | |
helper (const parameters &par) | |
bool | decomposition (const matrix< T > &src, matrix< T > &u, vector< T > &w, matrix< T > &v) const |
bool | decomposition (matrix< T > &src, vector< T > &w, matrix< T > &v) const |
cvr::svd::svd::helper< T >::helper | ( | const parameters & | par | ) |
The only constructor expects a parameter object.
bool cvr::svd::svd::helper< T >::decomposition | ( | matrix< T > & | src, | |
vector< T > & | w, | |||
matrix< T > & | v | |||
) | const |
On-Place version of Singular Value Decomposition.
Singular Value
Decomposition means that a m*n-matrix A is decomposed into three matrices U,W,V, such that A = U*W*V'. U is m*n, W is a diagonal matrix with n elements (which is implemented as vector), V is a n*n-matrix. Note that the function returns V, not V'.
src | matrix<T> with the source matrix, will also contain the U matrix after the function has returned. If src is a m*n matrix, U will also be of size m*n | |
w | vector<T> with the singular values, sorted descendingly The elements of this vector constitute the diagonal of the W matrix. | |
v | the V matrix |
bool cvr::svd::svd::helper< T >::decomposition | ( | const matrix< T > & | src, | |
matrix< T > & | u, | |||
vector< T > & | w, | |||
matrix< T > & | v | |||
) | const |
On-Copy version of Singular Value Decomposition.
Singular Value
Decomposition means that a m*n-matrix A is decomposed into three matrices U,W,V, such that A = U*W*V'. U is m*n, W is a diagonal matrix with n elements (which is implemented as vector), V is a n*n-matrix. Note that the function returns V, not V'.
src | matrix<T> with the source matrix, will also contain the U matrix after the function has returned. If src is a m*n matrix, U will also be of size m*n | |
w | vector<T> with the singular values, sorted descendingly The elements of this vector constitute the diagonal of the W matrix. | |
v | the V matrix |