| Line 829... |
Line 829... |
PURPOSE Matrix inversion based on Singular Value Decomposition (SVD).
|
PURPOSE Matrix inversion based on Singular Value Decomposition (SVD).
|
INPUT Pointer to the matrix to invert,
|
INPUT Pointer to the matrix to invert,
|
Pointer to the inverted matrix,
|
Pointer to the inverted matrix,
|
Matrix size.
|
Matrix size.
|
OUTPUT Matrix rank.
|
OUTPUT Matrix rank.
|
NOTES Loosely adapted from Numerical Recipes in C, 2nd Ed. (p. 671). The a
|
NOTES Based on algorithm described in Numerical Recipes in C, 2nd Ed.(p. 671).
|
and v matrices are transposed with respect to the N.R. convention.
|
The a and v matrices are transposed with respect to the N.R. convention.
|
AUTHOR E. Bertin (IAP)
|
AUTHOR E. Bertin (IAP)
|
VERSION 02/09/2010
|
VERSION 02/09/2010
|
***/
|
***/
|
|
|
static int SVDINV(LM_REAL *a, LM_REAL *b, int m)
|
static int SVDINV(LM_REAL *a, LM_REAL *b, int m)
|