QR Factorization
• QR(M,[p])—Returns the QR factorization of matrix M.
By default, the function returns a vector of three nested matrices, P, Q, and R, such that M . P = Q . R. Matrix P represents the pivoting matrix, matrix Q represents the orthogonal matrix, and matrix R represents the upper triangular matrix.
If pivoting is disabled, the function returns a vector of two nested matrices, Q and R, such that M = Q . R.
When pivoting is disabled, the nested matrices Q and R have equal dimensions, but different element values, when compared to their default counterparts.
Arguments
• M is a real or complex m × n matrix.
• p (optional) is an integer. A zero value disables pivoting. A non-zero value enables pivoting (default behavior).