From 380a2548803075fb591fbbf056ca805c213931a8 Mon Sep 17 00:00:00 2001 From: FMatti Date: Wed, 3 Jul 2024 15:04:42 +0200 Subject: [PATCH] not sure why scipy matrices even exist... --- roughly/approximate/krylov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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