Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function normest(S, tol = -1, maxiter = 100)

x ./= e
e_0 = zero(e)
Sx = zeros(eltype(S), n)
Sx = zeros(eltype(S), m)

while abs(e - e_0) > tol * e
e_0 = e
Expand Down
3 changes: 1 addition & 2 deletions test/test_normest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ function simple_matrix_test_helper(S, ϵ_norm, ϵ)
end

function simple_matrix_test(ϵ)
(nrow, ncol) = (10, 10)
for (nrow, ncol) in [(10, 10), (5, 5), (3, 3)]
for (nrow, ncol) in [(10, 10), (5, 5), (3, 3), (3, 5), (5, 3), (5, 10), (10, 5)]
ϵ_norm = eps(Float64)
A1 = simple_matrix(ComplexF64, nrow, ncol)
simple_matrix_test_helper(A1, ϵ_norm, ϵ)
Expand Down
Loading