svdcmp.h File Reference

#include "Array2D.h"
#include "math.h"

Go to the source code of this file.

Functions

template<typename T>
SignOfNeg (T a, T b)
 This has been modified to use Array2D.
template<typename T>
HYPOT (T a, T b)
template<typename T>
int _SVDecompose (Array2D< T > &A, Array1D< T > &W, Array2D< T > &V, int maxiter)
template<typename T>
int _SVDFwBackSubst (const Array2D< T > &U, const Array1D< T > &W, const Array2D< T > &V, Array2D< T > &inv)
int SVDecompose (Array2D< double > &a, Array1D< double > &w, Array2D< double > &v, int maxiter)
int SVDecompose (Array2D< float > &a, Array1D< float > &w, Array2D< float > &v, int maxiter)
int SVDFwBackSubst (const Array2D< double > &u, const Array1D< double > &w, const Array2D< double > &v, Array2D< double > &inv)
int SVDFwBackSubst (const Array2D< float > &u, const Array1D< float > &w, const Array2D< float > &v, Array2D< float > &inv)


Function Documentation

template<typename T>
int _SVDecompose ( Array2D< T > &  A,
Array1D< T > &  W,
Array2D< T > &  V,
int  maxiter 
) [inline]

Definition at line 42 of file svdcmp.cpp.

References Array2D< T >::dim1(), Array2D< T >::dim2(), HYPOT(), and SignOfNeg().

Referenced by SVDecompose().

template<typename T>
int _SVDFwBackSubst ( const Array2D< T > &  U,
const Array1D< T > &  W,
const Array2D< T > &  V,
Array2D< T > &  inv 
) [inline]

template<typename T>
T HYPOT ( a,
b 
) [inline]

Definition at line 35 of file svdcmp.h.

Referenced by _SVDecompose().

template<typename T>
T SignOfNeg ( a,
b 
) [inline]

This has been modified to use Array2D.

Definition at line 31 of file svdcmp.h.

Referenced by _SVDecompose().

int SVDecompose ( Array2D< float > &  a,
Array1D< float > &  w,
Array2D< float > &  v,
int  maxiter 
)

Definition at line 334 of file svdcmp.cpp.

References _SVDecompose().

int SVDecompose ( Array2D< double > &  a,
Array1D< double > &  w,
Array2D< double > &  v,
int  maxiter 
)

Definition at line 331 of file svdcmp.cpp.

References _SVDecompose().

int SVDFwBackSubst ( const Array2D< float > &  u,
const Array1D< float > &  w,
const Array2D< float > &  v,
Array2D< float > &  inv 
)

Definition at line 341 of file svdcmp.cpp.

References _SVDFwBackSubst().

int SVDFwBackSubst ( const Array2D< double > &  u,
const Array1D< double > &  w,
const Array2D< double > &  v,
Array2D< double > &  inv 
)

Definition at line 337 of file svdcmp.cpp.

References _SVDFwBackSubst().


Generated on Sat Jul 5 16:13:59 2008 for QMcBeaver by  doxygen 1.5.6