- 博客(0)
- 资源 (1)
- 收藏
- 关注
PowerMethod
% PowerMethod approximates the dominant eigenvalue and
% corresponding eigenvector of a square matrix.
%
% [e_val, e_vec, k]=PowerMethod(A, x0, tol, kMax) where
%
% A is an n-by-n matrix,
% x0 is the n-by-1 initial guess (default ones),
% tol is the tolerance (default 1e-4),
% kMax is the maximum number of iterations (default 50),
%
% e_val is the approximated dominant eigenvalue,
% e_vec is the corresponding eigenvector,
% k is the number of iterations required for convergence.
2018-05-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人