Skip to content

Commit 05f3ef0

Browse files
committed
STY: fix minor issues.
1 parent 3fa6de4 commit 05f3ef0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/arnoldi/decomposition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def arnoldi_decomposition(A, V, H, invariant_tol, max_dim=None):
5252
A : ndarray of shape (n, n)
5353
square matrix to be decomposed
5454
V : ndarray of shape (n, m+1)
55-
the krylov basisexpected built by the Arnoldi decomposition
55+
the krylov basis built by the Arnoldi decomposition
5656
H : ndarray of shape (m+1, m)
5757
H[:m, :m] is the Hessenberg matrix built by the Arnoldi decomposition
5858
invariant_tol: float
@@ -75,7 +75,7 @@ def arnoldi_decomposition(A, V, H, invariant_tol, max_dim=None):
7575
m = V.shape[1] - 1
7676

7777
assert A.shape[1] == n, "A is expected to be square matrix"
78-
assert V.shape == (n, m+1), "V must has same number of rows as V"
78+
assert V.shape == (n, m+1), "V must have the same number of rows as A"
7979
assert H.shape == (m+1, m), f"H must be {m+1, m}, is {H.shape}"
8080

8181
max_dim = max_dim or m

tests/test_decomposition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ def test_mark10(self, m, d):
209209
n = A.shape[0]
210210
k = 2
211211

212-
sp.linalg.eigs(A, k)[0]
213-
214212
## When
215213
arnoldi = ArnoldiDecomposition(n, m)
216214
arnoldi.initialize()

0 commit comments

Comments
 (0)