Module linalg

Source
Expand description

Linear algebra operations.

Enums§

Ord
Order of the norm

Functions§

cholesky
Compute the Cholesky decomposition of a real symmetric positive semi-definite matrix.
cholesky_device
Compute the Cholesky decomposition of a real symmetric positive semi-definite matrix.
cholesky_inv
Compute the inverse of a real symmetric positive semi-definite matrix using it’s Cholesky decomposition.
cholesky_inv_device
Compute the inverse of a real symmetric positive semi-definite matrix using it’s Cholesky decomposition.
cross
Compute the cross product of two arrays along a specified axis.
cross_device
Compute the cross product of two arrays along a specified axis.
eigh
Compute the eigenvalues and eigenvectors of a complex Hermitian or real symmetric matrix.
eigh_device
Compute the eigenvalues and eigenvectors of a complex Hermitian or real symmetric matrix.
eigvalsh
Compute the eigenvalues of a complex Hermitian or real symmetric matrix.
eigvalsh_device
Compute the eigenvalues of a complex Hermitian or real symmetric matrix.
inv
Compute the inverse of a square matrix. Returns an error if the input is not valid.
inv_device
Compute the inverse of a square matrix. Returns an error if the input is not valid.
lu
Compute the LU factorization of the given matrix A.
lu_device
Compute the LU factorization of the given matrix A.
lu_factor
Computes a compact representation of the LU factorization.
lu_factor_device
Computes a compact representation of the LU factorization.
norm
Matrix or vector norm.
norm_device
Matrix or vector norm.
norm_ord
Matrix or vector norm.
norm_ord_device
Matrix or vector norm.
norm_p
Compute p-norm of an Array
norm_p_device
Compute p-norm of an Array
pinv
Compute the (Moore-Penrose) pseudo-inverse of a matrix.
pinv_device
Compute the (Moore-Penrose) pseudo-inverse of a matrix.
qr
The QR factorization of the input matrix. Returns an error if the input is not valid.
qr_device
The QR factorization of the input matrix. Returns an error if the input is not valid.
solve
Compute the solution to a system of linear equations AX = B
solve_device
Compute the solution to a system of linear equations AX = B
solve_triangular
Computes the solution of a triangular system of linear equations AX = B
solve_triangular_device
Computes the solution of a triangular system of linear equations AX = B
svd
The Singular Value Decomposition (SVD) of the input matrix. Returns an error if the input is not valid.
svd_device
The Singular Value Decomposition (SVD) of the input matrix. Returns an error if the input is not valid.
tri_inv
Compute the inverse of a triangular square matrix.
tri_inv_device
Compute the inverse of a triangular square matrix.