torch.linalg
Common linear algebra operations.
Matrix Properties
Computes a vector or matrix norm. |
|
Computes a vector norm. |
|
Computes a matrix norm. |
|
Computes the determinant of a square matrix. |
|
Computes the sign and natural logarithm of the absolute value of the determinant of a square matrix. |
|
Computes the condition number of a matrix with respect to a matrix norm. |
|
Computes the numerical rank of a matrix. |
Decompositions
Computes the Cholesky decomposition of a complex Hermitian or real symmetric positive-definite matrix. |
|
Computes the QR decomposition of a matrix. |
|
Computes the eigenvalue decomposition of a square matrix if it exists. |
|
Computes the eigenvalues of a square matrix. |
|
Computes the eigenvalue decomposition of a complex Hermitian or real symmetric matrix. |
|
Computes the eigenvalues of a complex Hermitian or real symmetric matrix. |
|
Computes the singular value decomposition (SVD) of a matrix. |
|
Computes the singular values of a matrix. |
Matrix Products
Alias for |
|
Computes the n-th power of a square matrix for an integer n. |
|
Efficiently multiplies two or more matrices by reordering the multiplications so that the fewest arithmetic operations are performed. |
|
Computes the first n columns of a product of Householder matrices. |
Tensor Operations
Computes the multiplicative inverse of |
|
Computes the solution X to the system torch.tensordot(A, X) = B. |