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

Maximum Eigen Value of a matrix

Tags: None
(comma "," separated)
saikatdutta
Registered Member
Posts
1
Karma
0

Maximum Eigen Value of a matrix

Sun Oct 12, 2014 1:54 pm
Hi,
I know how to obtain the eigenvalues of a matrix. I need to find the maximum among them and then get its absolute value. How can i do this? I am a newbie to Eigen library. Please help!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Maximum Eigen Value of a matrix

Mon Oct 13, 2014 7:57 am
If your problem is symmetric, then make sure you are using the SelfAdjointEigenSolver class, and then the eigenvalues are already sorted from the smallest to largest. Otherwise the eigenvalues might be complex, and so you can call .cwiseAbs().maxCoeff() to get the largest in magnitude.


Bookmarks



Who is online

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