Follow this link to skip to the main content

claraty::Matrix_SVD< T > Class Template Reference

#include <matrix_svd.h>

List of all members.

Public Member Functions

 Matrix_SVD (const Matrix< T > &Arg)
void get_U (Matrix< T > &A)
void get_V (Matrix< T > &A)
void get_singular_values (Vector< T > &x)
void get_singular_value_matrix (Matrix< T > &A)
norm2 ()
cond ()
int rank ()
void pinv (Matrix< T > &pinvA)

Private Member Functions

void _SVD_decomp (const Matrix< T > &Arg)

Private Attributes

Matrix< T > _U
Matrix< T > _V
Vector< T > _singular_values
int _n_rows
int _n_cols
int _nu


Detailed Description

template<class T>
class claraty::Matrix_SVD< T >

Definition at line 69 of file matrix_svd.h.


Constructor & Destructor Documentation

template<class T>
claraty::Matrix_SVD< T >::Matrix_SVD ( const Matrix< T > &  Arg  )  [inline]

Definition at line 72 of file matrix_svd.h.

References claraty::Matrix_SVD< T >::_n_cols, claraty::Matrix_SVD< T >::_n_rows, claraty::Matrix_SVD< T >::_nu, claraty::Matrix_SVD< T >::_singular_values, claraty::Matrix_SVD< T >::_SVD_decomp(), claraty::Matrix_SVD< T >::_U, and claraty::Matrix_SVD< T >::_V.

00073     : _n_rows(Arg.get_num_of_rows()),
00074       _n_cols(Arg.get_num_of_cols())
00075   {
00076     _nu = cl_min<int>(_n_rows,_n_cols);
00077     _singular_values = Vector<T>(cl_min(_n_rows+1,_n_cols)); 
00078     _U = Matrix<T>(_n_rows, _nu, T(0));
00079     _V = Matrix<T>(_n_cols,_n_cols);
00080 
00081     _SVD_decomp(Arg);
00082 
00083   };

Here is the call graph for this function:


Member Function Documentation

template<class T>
void claraty::Matrix_SVD< T >::get_U ( Matrix< T > &  A  ) 

template<class T>
void claraty::Matrix_SVD< T >::get_V ( Matrix< T > &  A  ) 

template<class T>
void claraty::Matrix_SVD< T >::get_singular_values ( Vector< T > &  x  ) 

template<class T>
void claraty::Matrix_SVD< T >::get_singular_value_matrix ( Matrix< T > &  A  ) 

template<class T>
T claraty::Matrix_SVD< T >::norm2 (  ) 

template<class T>
T claraty::Matrix_SVD< T >::cond (  ) 

template<class T>
int claraty::Matrix_SVD< T >::rank (  ) 

template<class T>
void claraty::Matrix_SVD< T >::pinv ( Matrix< T > &  pinvA  ) 

template<class T>
void claraty::Matrix_SVD< T >::_SVD_decomp ( const Matrix< T > &  Arg  )  [private]


Member Data Documentation

template<class T>
Matrix<T> claraty::Matrix_SVD< T >::_U [private]

Definition at line 99 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().

template<class T>
Matrix<T> claraty::Matrix_SVD< T >::_V [private]

Definition at line 99 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().

template<class T>
Vector<T> claraty::Matrix_SVD< T >::_singular_values [private]

Definition at line 100 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().

template<class T>
int claraty::Matrix_SVD< T >::_n_rows [private]

Definition at line 101 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().

template<class T>
int claraty::Matrix_SVD< T >::_n_cols [private]

Definition at line 101 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().

template<class T>
int claraty::Matrix_SVD< T >::_nu [private]

Definition at line 101 of file matrix_svd.h.

Referenced by claraty::Matrix_SVD< T >::Matrix_SVD().


The documentation for this class was generated from the following file: