qr

abstract fun qr(structureND: StructureND<T>): Pair<StructureND<T>, StructureND<T>>(source)

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

Receiver

the input.

Return

pair of Q and R tensors.