-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mode=:error_estimate gives wrong results for long times #160
Comments
It's been a while since I last read through the code, but iirc the error estimation routine only implements the Lanczos algorithm, i.e. mostly for Hermitian (or, in your real-valued case, symmetric) matrices.
ExponentialUtilities.jl/src/krylov_phiv_error_estimate.jl Lines 86 to 101 in 18e5161
Note with your example, with a symmetric A
-- ExponentialUtilities.jl/src/arnoldi.jl Lines 246 to 247 in 18e5161
however, the implementation of the error-estimation just checks the KrylovSubspace type ExponentialUtilities.jl/src/krylov_phiv_error_estimate.jl Lines 37 to 39 in 18e5161
|
So if you do |
@ChrisRackauckas Yes, would make sense since it assumes Lanczos/tridagonal KrylovSubspace.H to use with the stegr call
correction in PR. Thanks! |
Describe the bug 🐞
expv(t, A, b, mode=:error_estimate)
gives vastly different results for longer time-steps.Expected behavior
I would expect
error_estimate
andhappy_breakdown
results to at least have the same magnitudesMinimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()
[d4d017d3] ExponentialUtilities v1.25.0
versioninfo()
The text was updated successfully, but these errors were encountered: