cupy.linalg.qr¶
-
cupy.linalg.
qr
(a, mode='reduced')[source]¶ QR decomposition.
Decompose a given two-dimensional matrix into
Q * R
, whereQ
is an orthonormal andR
is an upper-triangular matrix.Parameters: - a (cupy.ndarray) – The input matrix.
- mode (str) – The mode of decomposition. Currently ‘reduced’,
‘complete’, ‘r’, and ‘raw’ modes are supported. The default mode
is ‘reduced’, and decompose a matrix
A = (M, N)
intoQ
,R
with dimensions(M, K)
,(K, N)
, whereK = min(M, N)
.
See also