Commit 6f73f65
Add 'eigmin'/'eigmax' methods for 'Eigen' (#1468)
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.)
---------
Co-authored-by: Jishnu Bhattacharya <[email protected]>1 parent 7b21cab commit 6f73f65
2 files changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
| |||
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | 104 | | |
| |||
0 commit comments