Computes the reduced QR decomposition of a matrix x:
$$A = Q R,$$
where \(Q\) has orthonormal columns (\(Q^\top Q = I\)) and
\(R\) is upper triangular.
For an \(m \times n\) input with \(k = \min(m, n)\), \(Q\) has
shape \(m \times k\) and \(R\) has shape \(k \times n\).
Usage
nv_qr(x)
# S3 method for class 'AnvlArray'
qr(x, ...)Arguments
- x
(
arrayish)
Matrix of data type floating-point with exactly 2 axes.- ...
No additional arguments.
Value
Named list with elements Q (shape (m, k)) and R
(shape (k, n)), where (m, n) = shape(x) and
k = min(m, n). Both have the same data type as x.