This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

QRDecomposition

QRDecomposition[m]
yields the QR decomposition for a numerical matrix m. The result is a list {q, r}, where q is an orthogonal matrix and r is an upper-triangular matrix.
  • For non-square matrices, q is row orthonormal.  »
  • The matrix r has zeros for all entries below the leading diagonal.  »
Compute the QR decomposition for a 3×2 matrix with exact values:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Compute the QR decomposition for a 2×3 matrix with approximate numerical values:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 2