This file deals with the Singular Value Decomposition of a matrix. More...
#include <fvar.hpp>
Go to the source code of this file.
Defines | |
#define | SIGN(a, b) ((b) >= 0.0 ? fabs(a) : -fabs(a)) |
Functions | |
sing_val_decomp | singval_decomp (const dmatrix &_a) |
Singular value decomposition. | |
int | svd (int m, int n, int withu, int withv, double eps, double tol, const dmatrix &aa, const dvector &_q, const dmatrix &_u, const dmatrix &_v) |
Singular value decomposition. | |
int | svd_mln (int m, int n, int withu, int withv, double eps, double tol, const dmatrix &aa, const dvector &_q, const dmatrix &_u, const dmatrix &_v) |
Singular value decomposition. | |
int | svd_nlm (int m, int n, int withu, int withv, double eps, double tol, const dmatrix &aa, const dvector &_q, const dmatrix &_u, const dmatrix &_v) |
Singular value decomposition. |
This file deals with the Singular Value Decomposition of a matrix.
The format of the decomposition follows the format given in "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, section 2.6.
Definition in file dmat42.cpp.
Definition at line 20 of file dmat42.cpp.
Referenced by get_eigen(), and get_eigen_values().
sing_val_decomp singval_decomp | ( | const dmatrix & | _a | ) |
int svd | ( | int | m, |
int | n, | ||
int | withu, | ||
int | withv, | ||
double | eps, | ||
double | tol, | ||
const dmatrix & | aa, | ||
const dvector & | _q, | ||
const dmatrix & | _u, | ||
const dmatrix & | _v | ||
) |
Singular value decomposition.
m | the number of rows of |
n | the number of columns of |
withu | true if the -part is wanted (true=1, false=0) |
withv | true if the -part is wanted (true=1, false=0) |
eps | i.e Epsilon |
tol | the tolerance used |
aa | |
_q | |
_u | |
_v |
On return will contain the singular values of and and will be a column-orthogonal matrices so that
Definition at line 118 of file dmat42.cpp.
Referenced by singval_decomp().
int svd_mln | ( | int | m, |
int | n, | ||
int | withu, | ||
int | withv, | ||
double | eps, | ||
double | tol, | ||
const dmatrix & | aa, | ||
const dvector & | _q, | ||
const dmatrix & | _u, | ||
const dmatrix & | _v | ||
) |
Singular value decomposition.
Used to find the svd of a matrix when .
Modified from svd.c (http://www.crbond.com/download/misc/svd.c), an algorithm that was translated by C. Bond to 'C' from the original Algol code in "Handbook for
Automatic Computation, vol. II, Linear Algebra", Springer-Verlag.
Definition at line 170 of file dmat42.cpp.
Referenced by svd().
int svd_nlm | ( | int | m, |
int | n, | ||
int | withu, | ||
int | withv, | ||
double | eps, | ||
double | tol, | ||
const dmatrix & | aa, | ||
const dvector & | _q, | ||
const dmatrix & | _u, | ||
const dmatrix & | _v | ||
) |
Singular value decomposition.
Used to find the svd of a matrix when .
Modified from svd.c (http://www.crbond.com/download/misc/svd.c), an algorithm that was translated by C. Bond to 'C' from the original Algol code in "Handbook for
Automatic Computation, vol. II, Linear Algebra", Springer-Verlag.
Definition at line 451 of file dmat42.cpp.
Referenced by svd().
Generated on Tue Mar 8 2016 19:51:36 for ADMB Documentation by 1.8.0 |