factorize

UMFFactor.factorize(A=None)[source]

Compute the numeric factorization of a sparse matrix.

Given the symbolic analysis performed in the constructor, compute the numeric factorization of a sparse matrix \(A\) and determine a fill-reducing ordering such that:

\[L U = P R A Q.\]

If given, the matrix \(A\) must have the same shape and nonzero pattern as the one used to create this UMFFactor object, but need not have the same values.

Parameters:

A ((M, N) numpy.ndarray or sparse array) – The input matrix. Must have the same shape and nonzero pattern as the matrix used to create this UMFFactor object. If not provided, the original matrix given to the constructor will be used.

Returns:

UMFFactor – The current object, for method chaining.

Raises:

UMFPACKError – If an error occurs during the numeric factorization.