Skip to content

Commit 2210767

Browse files
authored
fix normest not working on rectangular matrices
See #362
1 parent 0295c20 commit 2210767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function normest(S, tol = -1, maxiter = 100)
3636

3737
x ./= e
3838
e_0 = zero(e)
39-
Sx = zeros(eltype(S), n)
39+
Sx = zeros(eltype(S), m)
4040

4141
while abs(e - e_0) > tol * e
4242
e_0 = e

0 commit comments

Comments
 (0)