linalg
39 memberslucid.linalglucid.linalg: linear algebra operations.
Functions
inv→ TensorCompute the multiplicative inverse of a square matrix.
det→ TensorCompute the determinant of a square matrix.
solve→ TensorSolve a square linear system $AX = B$.
cholesky→ TensorCholesky decomposition of a symmetric positive-definite matrix.
norm→ TensorCompute a vector or matrix norm.
svd→ TensorSingular value decomposition of a matrix.
svdvals→ TensorCompute only the singular values of a matrix.
qr→ TensorQR decomposition of a matrix.
matrix_power→ TensorRaise a square matrix to an integer power.
pinv→ TensorMoore-Penrose pseudo-inverse of a matrix.
eig→ TensorEigenvalue decomposition of a general square matrix.
eigvals→ TensorCompute only the eigenvalues of a general square matrix.
eigh→ TensorEigendecomposition of a Hermitian / symmetric matrix.
eigvalsh→ TensorEigenvalues of a Hermitian / symmetric matrix.
lu_factor→ TensorLU factorization with partial pivoting (packed form).
slogdet→ TensorSign and natural log of the absolute determinant.
matrix_rank→ TensorCompute the numerical rank of a matrix.
cond→ TensorCompute the condition number of a matrix.
multi_dot→ TensorMultiply a sequence of matrices as a single chained product.
solve_triangular→ TensorSolve a triangular linear system by back/forward substitution.
vander→ TensorConstruct a Vandermonde matrix from a 1-D vector.
vector_norm→ TensorCompute a vector $p$-norm along an axis.
cross→ TensorCompute the cross product of two 3-D vectors.
vecdot→ TensorCompute a batched vector dot product along an axis.
dot→ TensorDot product of two 1-D tensors.
inner→ TensorInner product over the last axes of two tensors.
outer→ TensorOuter product of two 1-D tensors.
matrix_norm→ TensorCompute a matrix norm.
lstsq→ TensorSolve a least-squares linear system.
lu_solve→ TensorSolve a linear system from a precomputed LU factorization.
householder_product→ TensorReconstruct an orthogonal matrix from Householder reflectors.
ldl_factor→ TensorLDL factorization of a symmetric (or Hermitian) matrix.
cholesky_ex→ TensorCholesky factorization with an explicit success flag.
inv_ex→ TensorMatrix inverse with an explicit success flag.
solve_ex→ TensorSolve $AX = B$ with an explicit success flag.
lu→ TensorFull LU decomposition with explicit factors $(P, L, U)$.
ldl_solve→ TensorSolve a symmetric linear system using an LDL factorization.
matrix_exp→ TensorMatrix exponential $e^A$.
diagonal→ TensorExtract a (off-)diagonal from each matrix in a batched input.