SourcePro Analysis : Linear Algebra Module User’s Guide : Other Decompositions : QR Decomposition and Complete Orthogonal Decomposition
QR Decomposition and Complete Orthogonal Decomposition
The QR decomposition of a matrix is a decomposition of a general rectangular matrix, A, defined as:
AP = QR
where Q is orthogonal, R is upper-triangular, and P is a permutation matrix. If A has more rows than columns, the last rows of R are 0; if A has more columns than rows, R is upper-trapezoidal.
A QR decomposition object is constructed from a general rectangular matrix. Once an object exists, there are a variety of member functions that can be used to extract its components and to use the object for various operations.
You can control whether pivoting is done, and you can specify that certain rows of the decomposition should be moved to the front or back, by constructing a QR decomposition server object and using it to construct the decomposition. The technique is the same as using a singular value decomposition server.