POWER_METHOD is a MATLAB library which carries out the power method.
The power method implemented here is given a real square matrix, and seeks to determine the eigenvalue of maximum modulus, and a corresponding eigenvector.
The basic power method will not perform as expected if, corresponding to the maximum modulus, there are complex eigenvalues, or a pair of real eigenvalues of opposite sign. The power method's behavior can break down or be very slow initially if the starting vector has a zero or very small component in the eigenspace corresponding to the maximal eigenvalue.
A second version of the power method is included which can handle the case of complex eigenvalues.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
POWER_METHOD is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
ARPACK, a MATLAB library which computes eigenvalues and eigenvectors of large sparse matrices, accessible via the built-in EIGS command;
TEST_MAT, a MATLAB library which defines test matrices.
TEST_MATRIX, a MATLAB library which contains Nick Higham's collection of test matrices.
You can go up one level to the MATLAB source codes.