philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
svd.h File Reference
#include "../../Matrix.h"
#include "gaussJordan.h"
#include "qr.h"

Go to the source code of this file.

Functions

std::vector< Matrix< double > > svd (const Matrix< double > &A, const size_t &k, const double epsilon=0.1e-4)
 

Function Documentation

◆ 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
AMatrix to operate with
kdimensions to calculate. If = 0 calculate all
epsilonsquared error tolerance
Returns
SVD of A
Examples
numerics/lin_alg/TestSVD.cpp.