#include "../../Matrix.h"
#include "gaussJordan.h"
#include "qr.h"
Go to the source code of this file.
|
std::vector< Matrix< double > > | svd (const Matrix< double > &A, const size_t &k, const double epsilon=0.1e-4) |
|
◆ svd()
std::vector< Matrix< double > > svd |
( |
const Matrix< double > & |
A, |
|
|
const size_t & |
k, |
|
|
const double |
epsilon = 0.1e-4 |
|
) |
| |
Calculates SVD (Singular Value Decomposition) of given Matrix A for k Dimensions
- Parameters
-
A | Matrix to operate with |
k | dimensions to calculate. If = 0 calculate all |
epsilon | squared error tolerance |
- Returns
- SVD of A
- Examples
- numerics/lin_alg/TestSVD.cpp.