Compute the QRDecomposition of a matrix. More...
#include <cmtkQRDecomposition.h>
Public Types | |
typedef Matrix2D< TFloat > | matrix2D |
Matrix type. | |
typedef SmartPointer< matrix2D > | matrixPtr |
Matrix pointer. | |
Public Member Functions | |
QRDecomposition (const Matrix2D< TFloat > &matrix) | |
Constructor: compute QR decomposition of given matrix. | |
matrix2D & | GetQ () |
Get the Q factor. | |
matrix2D & | GetR () |
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. |
Compute the QRDecomposition of a matrix.
Definition at line 51 of file cmtkQRDecomposition.h.
typedef Matrix2D<TFloat> cmtk::QRDecomposition< TFloat >::matrix2D |
Matrix type.
Definition at line 55 of file cmtkQRDecomposition.h.
typedef SmartPointer< matrix2D > cmtk::QRDecomposition< TFloat >::matrixPtr |
Matrix pointer.
Definition at line 58 of file cmtkQRDecomposition.h.
ap::real_2d_array cmtk::QRDecomposition< TFloat >::compactQR [protected] |
Alglib compact QR representation.
Definition at line 71 of file cmtkQRDecomposition.h.
bool cmtk::QRDecomposition< TFloat >::extractedQ [private] |
True iff the Q extraction has been performed.
Definition at line 89 of file cmtkQRDecomposition.h.
bool cmtk::QRDecomposition< TFloat >::extractedR [private] |
True iff the R extraction has been performed.
Definition at line 91 of file cmtkQRDecomposition.h.
int cmtk::QRDecomposition< TFloat >::m [private] |
Number of rows in the input matrix.
Definition at line 85 of file cmtkQRDecomposition.h.
int cmtk::QRDecomposition< TFloat >::n [private] |
Number of columns in the input matrix.
Definition at line 87 of file cmtkQRDecomposition.h.
matrixPtr cmtk::QRDecomposition< TFloat >::Q [protected] |
Q matrix.
Definition at line 77 of file cmtkQRDecomposition.h.
matrixPtr cmtk::QRDecomposition< TFloat >::R [protected] |
R matrix.
Definition at line 80 of file cmtkQRDecomposition.h.
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.