qyre#
Purpose#
Computes the orthogonal-triangular (QR) decomposition of a matrix x and returns
Format#
- { qy, r, e } = qyre(y, x)#
- Parameters:
y (NxL matrix) – data
x (NxP matrix) – data
- Returns:
qy (NxL matrix) – unitary matrix
r (KxP matrix) – upper triangular matrix.
.e (Px1 vector) – permutation vector
Remarks#
Given
where
where
is the QR decomposition of
For most problems qyre()
has been provided for the calculation of
If either qtyre()
.
If
where
Source#
qyr.src