-
Notifications
You must be signed in to change notification settings - Fork 7
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
Attempt to fix ql #154
Attempt to fix ql #154
Conversation
Great, thanks for that! I probably changed the interface at some point. It would be great if you could a test. Btw I forgot that I implemented ∞-QL for such matrices. It probably only works for operators that are asymptotically block Toeplitz, which may not include your original example (it does include bi-infinite discrete Schrödinger operators). It was very experimental code that hasn't really been used so I'm not sure I'd recommend using it, but if it's something you'd like to explore collaboratively I'd be happy to help. Doing inverse iteration via |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #154 +/- ##
==========================================
+ Coverage 79.76% 81.50% +1.74%
==========================================
Files 10 10
Lines 1379 1379
==========================================
+ Hits 1100 1124 +24
+ Misses 279 255 -24 ☔ View full report in Codecov by Sentry. |
Yeah, I just wasn't sure what or how to properly test it.
Yep, fair enough! |
In the first instance you can just do a test that makes sure It doesn't error. Eg something like |
Looks fine, thanks for that! Let me know if you want to use this more seriously. The philosophy is very much similar to the discussion on Discourse, that is you do the ∞-dimensional tail exactly, but here we construct matrix factorisations rather than inverses. I'd expect it to be more numerically stable; its essentially the difference between QL algorithm and inverse iteration. |
Thanks! I think for now, for my puposes, the brute force approach with a truncated matrix is working fine, but I may revisit this soon. |
@dlfivefifty do you mind merging this? I have merge rights (through JuliaLinearAlgebra) but it feels a little rude for me to do it since I'm not normally active in this repo. |
Apologies! I think tests were still running last time I looked |
Not a problem :) |
This change seems to fix the example #153, but it'd be good if there were also tests we could put in to check.