Learn R Programming

torch (version 0.0.2)

torch_eig: Eig

Description

Eig

Arguments

input

(Tensor) the square matrix of shape \((n \times n)\) for which the eigenvalues and eigenvectors will be computed

eigenvectors

(bool) True to compute both eigenvalues and eigenvectors; otherwise, only eigenvalues will be computed

out

(tuple, optional) the output tensors

eig(input, eigenvectors=False, out=None) -> (Tensor, Tensor)

Computes the eigenvalues and eigenvectors of a real square matrix.