Repository navigation
oneMKL: eigen and eigvals of Symmetric and Hermitian matrices - #776
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #776 +/- ##
==========================================
- Coverage 86.71% 85.97% -0.75%
==========================================
Files 55 55
Lines 5143 5091 -52
==========================================
- Hits 4460 4377 -83
- Misses 683 714 +31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
maleadt
force-pushed
the
eigen-symmetric
branch
2 times, most recently
from
December 2, 2026 16:48
a44b2b2 to
2e77a9b
Compare
maleadt
approved these changes
Dec 2, 2026
maleadt
left a comment
Member
There was a problem hiding this comment.
Thanks! I pushed a small change: eigen(...; sortby=f) now sorts on the device (the stdlib's sorteig! permuted element by element), and the test checks that only the uplo triangle is read. LGTM.
The stdlib's default driver for these is LAPACK.syevr!, which has no oneMKL method, so eigen(Symmetric(A)) of a oneMatrix reached the host method and stopped on scalar indexing. eigen! and eigvals! now call the syevd/heevd wrappers for Float32, Float64 and their complex types, and sort by `sortby` on the device.
maleadt
force-pushed
the
eigen-symmetric
branch
from
December 3, 2026 05:40
2e77a9b to
bd963b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The stdlib's default driver for these is
LAPACK.syevr!, which has no oneMKL method, soeigen(Symmetric(A))of aoneMatrixreached the host method and stopped on scalar indexing.eigen!andeigvals!now call thesyevd/heevdwrappers forFloat32,Float64and their complex types, and applysortbyon the device.The range variants (
eigvals(A, 1:k),eigvals(A, vl, vu)) still take the host path; they would need asyevxwrapper.