torch.geqrf
- torch.geqrf(input, *, out=None)
This is a low-level function for calling LAPACK’s geqrf directly. This function returns a namedtuple (a, tau) as defined in LAPACK documentation for geqrf .
Computes a QR decomposition of
input. Both Q and R matrices are stored in the same output tensor a. The elements of are stored on and above the diagonal. Elementary reflectors (or Householder vectors) implicitly defining matrix are stored below the diagonal. The results of this function can be used together with to obtain the matrix or with , which uses an implicit representation of the matrix, for an efficient matrix-matrix multiplication.