pymatsolver.Solver.factor#
- Solver.factor(A=None)[source]#
(Re)factor the matrix.
- Parameters:
- A
optional A new matrix to replace the current one. It must have the same shape and dtype as the current matrix, and should share its symmetry and definiteness properties, which are not re-checked. For solvers that reuse a symbolic analysis (e.g. Pardiso and Mumps), it must also have the same sparsity pattern. If
None(or the current matrix), this performs the factorization if it has not been done yet.
- A
Notes
Transposed and conjugated solvers created from a SolverLU, Pardiso, or Mumps solver share its factorization, and are updated along with it. For other solvers, those previously created objects continue to use the old matrix.