Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | List of all members
om::math::Matrix< T >::QR Class Reference

#include <omMatrix.h>

Public Member Functions

Bool solve (const Matrix< T > &A, Matrix< T > &Q, Matrix< T > &R)
 Factorize a matrix A into the product A = Q*R, where Q is orthornormal and R is upper-triangular. More...
 
Bool solve (const Matrix< T > &A, Matrix< T > &Q, Matrix< T > &R, Matrix< Index > &permutation)
 Factorize a matrix A into the product A = Q*R, where Q is orthornormal and R is upper-triangular. More...
 

Member Function Documentation

template<typename T>
Bool om::math::Matrix< T >::QR::solve ( const Matrix< T > &  A,
Matrix< T > &  Q,
Matrix< T > &  R 
)
inline

Factorize a matrix A into the product A = Q*R, where Q is orthornormal and R is upper-triangular.

The method computes the QR factorization without column pivoting.

template<typename T>
Bool om::math::Matrix< T >::QR::solve ( const Matrix< T > &  A,
Matrix< T > &  Q,
Matrix< T > &  R,
Matrix< Index > &  permutation 
)
inline

Factorize a matrix A into the product A = Q*R, where Q is orthornormal and R is upper-triangular.

The method uses column pivoting to compute the QR factorization with improved robustness and numerical stability. The permutation of the columns of matrix A is returned, such that permutation(A) = Q*R.


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