qr

abstract fun Tensor<T>.qr(): Pair<Tensor<T>, Tensor<T>>

QR decomposition.

Computes the QR decomposition of a matrix or a batch of matrices, and returns a pair Q to R of tensors. Given a tensor input, return tensors Q to R satisfying input == Q dot R, with Q being an orthogonal matrix or batch of orthogonal matrices and R being an upper triangular matrix or batch of upper triangular matrices. For more information: https://pytorch.org/docs/stable/linalg.html#torch.linalg.qr

Return

pair of Q and R tensors.

Sources

common source
Link copied to clipboard