Skip to content
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

Convert matrices to float in eigen #1294

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Convert matrices to float in eigen #1294

merged 2 commits into from
Feb 17, 2025

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Feb 13, 2025

After this, the following works:

julia> A = SMatrix{3,3}(1:9); # integer matrix

julia> eigen(Hermitian(A))
Eigen{Float64, Float64, SMatrix{3, 3, Float64, 9}, SVector{3, Float64}}
values:
3-element SVector{3, Float64} with indices SOneTo(3):
 -3.1574678406080774
 -0.6727679548987636
 18.830235795506848
vectors:
3×3 SMatrix{3, 3, Float64, 9} with indices SOneTo(3)×SOneTo(3):
 -0.802389   0.434025  -0.409627
 -0.168127  -0.822962  -0.542649
  0.57263    0.366546  -0.733307

@jishnub jishnub merged commit 1af9ba6 into master Feb 17, 2025
21 of 26 checks passed
@jishnub jishnub deleted the jishnub/eigen_nonfloat branch February 17, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants