diff --git a/roughly/approximate/krylov.py b/roughly/approximate/krylov.py index 46f53cc..b276661 100644 --- a/roughly/approximate/krylov.py +++ b/roughly/approximate/krylov.py @@ -23,7 +23,7 @@ def _preprocess(self, A, X, k, dtype=None): self.n, self.m = X.shape self.k = k - self.matvec = (lambda x: A @ x) if isinstance(A, np.ndarray | sp.sparse.sparray) else A + self.matvec = (lambda x: A @ x) if isinstance(A, np.ndarray | sp.sparse.spmatrix) else A self.dtype = A.dtype if dtype is None else dtype return X