Dominant eigenvalue using the inverse power method
22 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I wrote the code for the inverse power method and the latter is giving me the least dominant eigenvalue. Here is my code
function [v,lamda] = IPM(B,tol)
tic;
A=inv(B);
n=size(A,1);
v=rand(n,1);
v=v/norm(v);
res=1;
while (res > tol)
W= A*v;
lamda=max(abs(W));
v= W/lamda;
res=norm(A*v-lamda*v);
toc
end
I want to invert it to get the dominant eigenvalue. Please help.
1 comentario
Geoff Hayes
el 3 de Mayo de 2014
It is my understanding that the Power Method returns the dominant eigenvalue, and that the Inverse Power Method can be used to find the smallest (least dominant) eigenvalue OR it can be used to approximate an eigenvalue close to some number (which implies the least dominant eigenvalue if the chosen number is zero…which is the case in the above code).
Respuestas (0)
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!