def _symbolic(self, A): """ Return the symbolic factorization of sparse matrix ``A``. Parameters ---------- A Sparse matrix to be factorized. Returns ------- A C-object of the symbolic factorization. """ if self.sparselib == 'umfpack': return umfpack.symbolic(A) elif self.sparselib == 'klu': return klu.symbolic(A) elif self.sparselib in ('spsolve', 'cupy'): raise NotImplementedError
def _symbolic(self, A): return klu.symbolic(A)