Dominant eigenvalue using the inverse power method

22 visualizaciones (últimos 30 días)
Enzo Carzola
Enzo Carzola el 3 de Mayo de 2014
Comentada: Geoff Hayes el 3 de Mayo de 2014
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
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).

Iniciar sesión para comentar.

Respuestas (0)

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!

Translated by