factorize¶
- KLUFactor.factorize(A)[source]¶
Compute the numeric factorization of the matrix.
Computes the numeric factorization of a sparse matrix \(A\) and determines a fill-reducing ordering such that:
\[L U + F = R P A Q.\]If given, the matrix \(A\) must have the same shape and nonzero pattern as the one used to create this
KLUFactorobject, but need not have the same values.Warning
No check is made on the non-zero structure of the input matrix, so if it is different from the one used for the symbolic analysis, the results will be incorrect without raising an error.
- Parameters:
A ((N, N) numpy.ndarray or sparse array) – The input matrix. Must have the same shape and nonzero pattern as the matrix used to create this
KLUFactorobject. If not provided, the original matrix given to the constructor will be used.- Returns:
KLUFactor– The current object, for method chaining.