where is the m-dimensional identity matrix and is the conjugate transpose when is complex, and the transpose when is real-valued. See Representation of Orthogonal or Unitary Matrices for further details.
Supports inputs of float, double, cfloat and cdouble dtypes. Also supports batches of matrices, and if the inputs are batches of matrices then the output has the same batch dimensions.
Note
This function only uses the values strictly below the main diagonal of A. The other values are ignored.
torch_geqrf() can be used together with this function to form the Q from the linalg_qr() decomposition.
torch_ormqr() is a related function that computes the matrix multiplication of a product of Householder matrices with another matrix. However, that function is not supported by autograd.