module

linalg

39 members
lucid.linalg

lucid.linalg: linear algebra operations.

Functions

fninvTensor

Compute the multiplicative inverse of a square matrix.

fndetTensor

Compute the determinant of a square matrix.

fnsolveTensor

Solve a square linear system $AX = B$.

fncholeskyTensor

Cholesky decomposition of a symmetric positive-definite matrix.

fnnormTensor

Compute a vector or matrix norm.

fnsvdTensor

Singular value decomposition of a matrix.

fnsvdvalsTensor

Compute only the singular values of a matrix.

fnqrTensor

QR decomposition of a matrix.

fnmatrix_powerTensor

Raise a square matrix to an integer power.

fnpinvTensor

Moore-Penrose pseudo-inverse of a matrix.

fneigTensor

Eigenvalue decomposition of a general square matrix.

fneigvalsTensor

Compute only the eigenvalues of a general square matrix.

fneighTensor

Eigendecomposition of a Hermitian / symmetric matrix.

fneigvalshTensor

Eigenvalues of a Hermitian / symmetric matrix.

fnlu_factorTensor

LU factorization with partial pivoting (packed form).

fnslogdetTensor

Sign and natural log of the absolute determinant.

fnmatrix_rankTensor

Compute the numerical rank of a matrix.

fncondTensor

Compute the condition number of a matrix.

fnmulti_dotTensor

Multiply a sequence of matrices as a single chained product.

fnsolve_triangularTensor

Solve a triangular linear system by back/forward substitution.

fnvanderTensor

Construct a Vandermonde matrix from a 1-D vector.

fnvector_normTensor

Compute a vector $p$-norm along an axis.

fncrossTensor

Compute the cross product of two 3-D vectors.

fnvecdotTensor

Compute a batched vector dot product along an axis.

fndotTensor

Dot product of two 1-D tensors.

fninnerTensor

Inner product over the last axes of two tensors.

fnouterTensor

Outer product of two 1-D tensors.

fnmatrix_normTensor

Compute a matrix norm.

fnlstsqTensor

Solve a least-squares linear system.

fnlu_solveTensor

Solve a linear system from a precomputed LU factorization.

fnhouseholder_productTensor

Reconstruct an orthogonal matrix from Householder reflectors.

fnldl_factorTensor

LDL factorization of a symmetric (or Hermitian) matrix.

fncholesky_exTensor

Cholesky factorization with an explicit success flag.

fninv_exTensor

Matrix inverse with an explicit success flag.

fnsolve_exTensor

Solve $AX = B$ with an explicit success flag.

fnluTensor

Full LU decomposition with explicit factors $(P, L, U)$.

fnldl_solveTensor

Solve a symmetric linear system using an LDL factorization.

fnmatrix_expTensor

Matrix exponential $e^A$.

fndiagonalTensor

Extract a (off-)diagonal from each matrix in a batched input.