A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pytorch.org/docs/main/generated/torch.geqrf.html below:

torch.geqrf — PyTorch main documentation

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 R are stored on and above the diagonal. Elementary reflectors (or Householder vectors) implicitly defining matrix Q are stored below the diagonal. The results of this function can be used together with torch.linalg.householder_product() to obtain the Q matrix or with torch.ormqr(), which uses an implicit representation of the Q matrix, for an efficient matrix-matrix multiplication.

See LAPACK documentation for geqrf for further details.

Note

See also torch.linalg.qr(), which computes Q and R matrices, and torch.linalg.lstsq() with the driver="gels" option for a function that can solve matrix equations using a QR decomposition.

Parameters

input (Tensor) – the input matrix

Keyword Arguments

out (tuple, optional) – the output tuple of (Tensor, Tensor). Ignored if None. Default: None.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4