Simple power method iteration

I have a matrix A, and want to implement a simple power method iteration to find the largest eigenvalue in modulus. After doing this, I want to find the smallest (most negative) eigenpair of A, and here I think I need the Inverse power method with a shift. I know eig(A) works just fine, but I want to know how to do this using the power method iteration. Thanks!

 采纳的回答

Andrew Newell
Andrew Newell 2011-3-30

1 个投票

The power method is implemented in MATLAB here. They point out that a naive version of this algorithm will not work well under some circumstances.

2 个评论

Thanks Andrew, I did look at that code but it seems far more complicated. I figured out a simpler code for the iteration. Thanks anyways!
hi sucheta, can you give me the simpler code that you made?? thanks before :)

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Linear Algebra 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by