The current DirectSolver maintains separate classes for CSR/COO matrix construction that lead to significant code duplication. These should be removed and replaced with a single combined implementation that supports both COO and CSR formats.
The format selection should be determined at configuration time: use COO when MUMPS is selected (since MUMPS natively accepts COO input), and CSR otherwise. This unification reduces maintenance burden.
The current
DirectSolvermaintains separate classes for CSR/COO matrix construction that lead to significant code duplication. These should be removed and replaced with a single combined implementation that supports both COO and CSR formats.The format selection should be determined at configuration time: use COO when MUMPS is selected (since MUMPS natively accepts COO input), and CSR otherwise. This unification reduces maintenance burden.