Public Types | Public Member Functions | Protected Attributes | Private Attributes

cmtk::QRDecomposition< TFloat > Class Template Reference
[cmtkBase Library]

Compute the QRDecomposition of a matrix. More...

#include <cmtkQRDecomposition.h>

Collaboration diagram for cmtk::QRDecomposition< TFloat >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Matrix2D< TFloat > matrix2D
 Matrix type.
typedef SmartPointer< matrix2DmatrixPtr
 Matrix pointer.

Public Member Functions

 QRDecomposition (const Matrix2D< TFloat > &matrix)
 Constructor: compute QR decomposition of given matrix.
matrix2DGetQ ()
 Get the Q factor.
matrix2DGetR ()
 Get the R factor.

Protected Attributes

ap::real_2d_array compactQR
 Alglib compact QR representation.
ap::real_1d_array tau
 Alglib tau array (generated by rmatrixqr, needed to compute Q)
matrixPtr Q
 Q matrix.
matrixPtr R
 R matrix.

Private Attributes

int m
 Number of rows in the input matrix.
int n
 Number of columns in the input matrix.
bool extractedQ
 True iff the Q extraction has been performed.
bool extractedR
 True iff the R extraction has been performed.

Detailed Description

template<class TFloat>
class cmtk::QRDecomposition< TFloat >

Compute the QRDecomposition of a matrix.

Definition at line 51 of file cmtkQRDecomposition.h.


Member Typedef Documentation

template<class TFloat>
typedef Matrix2D<TFloat> cmtk::QRDecomposition< TFloat >::matrix2D

Matrix type.

Definition at line 55 of file cmtkQRDecomposition.h.

template<class TFloat>
typedef SmartPointer< matrix2D > cmtk::QRDecomposition< TFloat >::matrixPtr

Matrix pointer.

Definition at line 58 of file cmtkQRDecomposition.h.


Member Data Documentation

template<class TFloat>
ap::real_2d_array cmtk::QRDecomposition< TFloat >::compactQR [protected]

Alglib compact QR representation.

Definition at line 71 of file cmtkQRDecomposition.h.

template<class TFloat>
bool cmtk::QRDecomposition< TFloat >::extractedQ [private]

True iff the Q extraction has been performed.

Definition at line 89 of file cmtkQRDecomposition.h.

template<class TFloat>
bool cmtk::QRDecomposition< TFloat >::extractedR [private]

True iff the R extraction has been performed.

Definition at line 91 of file cmtkQRDecomposition.h.

template<class TFloat>
int cmtk::QRDecomposition< TFloat >::m [private]

Number of rows in the input matrix.

Definition at line 85 of file cmtkQRDecomposition.h.

template<class TFloat>
int cmtk::QRDecomposition< TFloat >::n [private]

Number of columns in the input matrix.

Definition at line 87 of file cmtkQRDecomposition.h.

template<class TFloat>
matrixPtr cmtk::QRDecomposition< TFloat >::Q [protected]

Q matrix.

Definition at line 77 of file cmtkQRDecomposition.h.

template<class TFloat>
matrixPtr cmtk::QRDecomposition< TFloat >::R [protected]

R matrix.

Definition at line 80 of file cmtkQRDecomposition.h.

template<class TFloat>
ap::real_1d_array cmtk::QRDecomposition< TFloat >::tau [protected]

Alglib tau array (generated by rmatrixqr, needed to compute Q)

Definition at line 74 of file cmtkQRDecomposition.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines