BUG: sparse.linalg/gmres: deprecate effect of callback on semantics of maxiter #10341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, specifying a
callback
argument to gmres would change themeaning of
maxiter
. This is clearly undesired.Deprecate the old 'legacy' behavior by adding a new
callback_type
argument. Code that does not specify it will get a warning emitted, but
will retain the old behavior.
In #1255 it is claimed
maxiter
did not work without theiter_num
stuff ---however, I believe this is false: the
iter_num
is incremented only whencallback
is given. So ifmaxiter
did not work, this would always manifestwhen
callback
was not provided. However, there are no bug reports of thishappening, nor can I reproduce it.
Closes: #8815
Closes: #1255