C# Class MapAround.MathUtils.SvdDecomposer

Performs singular decomposition of matrix.
Datei anzeigen Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method Description
CalcDecomposition ( double A, int m, int n, double w, int matu, double U, int matv, double V, int &ierr ) : void

Calculates a singular value decomposition of the matrix.

Solve ( double A, double b, double x ) : void

Solves a linear equations system (A * x = B).

Private Methods

Method Description
dSign ( double a, double b ) : double
svdLeastSquares ( double U, double w, double V, int m, int n, double b, double x ) : void

Method Details

CalcDecomposition() public static method

Calculates a singular value decomposition of the matrix.
public static CalcDecomposition ( double A, int m, int n, double w, int matu, double U, int matv, double V, int &ierr ) : void
A double Matrix
m int A row number of the matrix A
n int A column number of the matrix A
w double Vector of singular values
matu int
U double First matrix in decomposition
matv int
V double Third matrix in decomposition
ierr int
return void

Solve() public static method

Solves a linear equations system (A * x = B).
public static Solve ( double A, double b, double x ) : void
A double The Matrix A
b double The vector B
x double The vector x
return void