This forum has been archived. All content is frozen. Please use KDE Discuss instead.

SelfAdjointEigenSolver for complex matrices

Tags: None
(comma "," separated)
kavehkh
Registered Member
Posts
3
Karma
0
Hello,

I am trying to use Eigen in a new project and was using the SelfAdjointEigenSolver class. It seems that it does not work with complex Hermitian matrices (which are self-adjoint). Is there a way to make it work? By definition SelfAdjoint operators includes Hermitian complex matrices.

My code works with ComplexEigenSolver but I am sure can be made faster if it could use the selfadjointeigensolver.

Any ideas?

Kaveh
PS. LAPACK has CHEEV function which does the above. I might actually consider using it for this portion of my code!
User avatar
bjacob
Registered Member
Posts
658
Karma
3
SelfAdjointEigenSolver definitely works on complex matrices. It's covered by tests, see tests/eigensolver.cpp in Eigen2 and tests/eigensolver_selfadjoint.cpp in Eigen3.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
kavehkh
Registered Member
Posts
3
Karma
0
Then perhaps, I am not coding it right (it's a template based defined function). Thanks for the reply!


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]