Clark Kent LU Decomposition (sksparse.klu)

Added in version 0.5.0.

An interface to the SuiteSparse KLU package, which computes the LU factorization and solves systems of equations for sparse, possibly non-symmetric, indefinite matrices.

Function Interface

klu_solve

Solve a linear system using KLU.

Object Interface

klu_factor

Compute the LU factorization of a sparse matrix using KLU.

KLUFactor

Class to compute and store the KLU factorization of a sparse matrix.

KLUInfo

A dataclass to store KLU information.

KLUControl

A dataclass to set KLU control parameters.

Warnings and Exceptions

KLUWarning

Base warning for KLU-related warnings.

KLUSingularMatrixWarning

Warning raised when a singular matrix is encountered.

KLUError

Base exception for KLU-related errors.

KLUOutOfMemoryError

Exception raised when KLU runs out of memory.

KLUInvalidError

Exception raised for invalid inputs to KLU.

KLUOverflowError

Exception raised when KLU encounters an overflow.

References