26 unsigned int m, n, min;
31 min = (m < n) ? m : n;
43 REAL wmax = ((REAL) 0.0f),
46 for (
unsigned int i = 0, cCount = w.
Rows() ; i < cCount ; i++)
47 wmax = (wmax > w(i,0)) ? wmax : w(i,0);
49 threshold = wmax * ((REAL) 1.0e-5);
54 vals.
Data(),coeffs.
Data(),threshold);
64 unsigned int m, n, min;
69 min = (m < n) ? m : n;
87 unsigned int m, n, min;
92 min = (m < n) ? m : n;
96 REAL wmax = ((REAL) 0.0f),
99 for (
unsigned int i = 0, cCount = w.
Rows() ; i < cCount ; i++)
100 wmax = (wmax > w(i,0)) ? wmax : w(i,0);
102 threshold = wmax * ((REAL) 1.0e-5);
105 vals.
Data(),coeffs.
Data(),threshold);
void num_svd(const REAL *a, int m, int n, REAL *u, REAL *w, REAL *vt)
Definition SVD.inl:728
void num_svd_backsubst(int m, int n, const REAL *u, const REAL *w, const REAL *vt, const REAL b[], REAL x[], REAL eps)
Definition SVD.inl:791
void SVDFit(GXMatrixMNTC< REAL > &A, GXMatrixMNTC< REAL > &vals, GXMatrixMNTC< REAL > &coeffs)
Definition SVDFit.inl:21
void SVDMat(GXMatrixMNTC< REAL > &A, GXMatrixMNTC< REAL > &u, GXMatrixMNTC< REAL > &w, GXMatrixMNTC< REAL > &vt)
Definition SVDFit.inl:59
void SVDApply(GXMatrixMNTC< REAL > &u, GXMatrixMNTC< REAL > &w, GXMatrixMNTC< REAL > &vt, GXMatrixMNTC< REAL > &vals, GXMatrixMNTC< REAL > &coeffs)
Definition SVDFit.inl:81
Definition MatrixMNTC.h:48
void SetDim(unsigned int cRows, unsigned int cCols)
Definition MatrixMNTC.inl:199
unsigned int Cols(void) const
Definition MatrixMNTC.inl:100
Coord * Data(void)
Definition MatrixMNTC.inl:106
unsigned int Rows(void) const
Definition MatrixMNTC.inl:193