Skip to content

Commit 6ccb4aa

Browse files
committed
More sensible number of iterations
1 parent c826fea commit 6ccb4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/idrs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ shadow space.
3939
- `history`: convergence history.
4040
"""
4141
function idrs!(x, A, b;
42-
s = 8, tol=sqrt(eps(real(eltype(b)))), maxiter=length(x)^2,
42+
s = 8, tol=sqrt(eps(real(eltype(b)))), maxiter=size(A, 2),
4343
log::Bool=false, kwargs...
4444
)
4545
history = ConvergenceHistory(partial=!log)

0 commit comments

Comments
 (0)