The QR decomposition of a square matrix A is A=QR, where Q is an orthogonal matrix (QTQ=I) and R is upper triangular. The qr command finds the QR decomposition of a matrix.
Examples.
A := [[3,5],[4,5]]:; |
qr(A) |
| , | ⎡ ⎢ ⎣ |
| ⎤ ⎥ ⎦ |
| , | ⎡ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎣ |
| ⎤ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎦ |