protected override IDisposableSolver <double> CreateSolver(CompressedColumnStorage <double> matrix, bool symmetric) { var solver = new Cholmod((SparseMatrix)matrix); if (!symmetric) { throw new Exception("CHOLMOD expects symmetric matrix."); } return(solver); }
protected override IDisposableSolver <Complex> CreateSolver(SparseMatrix matrix, bool symmetric) { var solver = new Cholmod(matrix); if (!symmetric) { // throw } return(solver); }