-
-
Notifications
You must be signed in to change notification settings - Fork 34
Add 'eigmin'/'eigmax' methods for 'Eigen' #1468
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
Conversation
6d23c53
to
b80df40
Compare
We add the methods 'eigmin' and 'eigmax' on the type 'F::Union{Eigen, GeneralizedEigen}' similarly to how 'eigvals' is defined on 'F'. Note that the corresponding unit tests in 'test/eigen.jl' that call 'eigvals' on such a struct are updated to include 'eigmin' and 'eigmax' calls as well; if all eigenvalues are real, the actual functionality of the methods is tested, and if any happen to be complex, then we test that they throw 'MethodError's. (Resolves JuliaLang#1464 by @longemen3000.)
b80df40
to
ff77b71
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1468 +/- ##
=======================================
Coverage 93.89% 93.89%
=======================================
Files 34 34
Lines 15926 15926
=======================================
+ Hits 14953 14954 +1
+ Misses 973 972 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This commit incorporates changes suggested by @jishnub to edit all associated 'F.values'/'f.values' calls in the diff to 'eigvals(F)'/'eigvals(f)' instead. Co-authored-by: Jishnu Bhattacharya <[email protected]>
@jishnub, I've made the requested changes. Thanks for the review. |
Hi @jishnub - do you think this is all ready to be merged now? :) |
Thanks! |
Should these functions be doced? |
I was wondering that too, but the already existing |
We add the methods 'eigmin' and 'eigmax' on the type 'F::Union{Eigen, GeneralizedEigen}' similarly to how 'eigvals' is defined on 'F'. Note that the corresponding unit tests in 'test/eigen.jl' that call 'eigvals' on such a struct are updated to include 'eigmin' and 'eigmax' calls as well; if all eigenvalues are real, the actual functionality of the methods is tested, and if any happen to be complex, then we test that they throw 'MethodError's.
(Resolves #1464 by @longemen3000.)