What is the fastest way to compute the first eigenvector?

조회 수: 21 (최근 30일)
Shojiro SHIBAYAMA
Shojiro SHIBAYAMA 2019년 6월 10일
댓글: gonzalo Mier 2020년 4월 3일
I'd like to know a way to compute the first eigenvector (the eigenvector with the largest eigenvalue) of a matrix A. Now I am using eig function.
[V, D] = eig(A);
However, this computes all eigenvectors of A, resulting in slow computation.
Does anyone know if there is a fastest way to compute the eigenvector? Thank you in advance.

채택된 답변

gonzalo Mier
gonzalo Mier 2019년 6월 10일
Read about eigs
  댓글 수: 4
Shojiro SHIBAYAMA
Shojiro SHIBAYAMA 2020년 2월 10일
편집: Shojiro SHIBAYAMA 2020년 2월 10일
Wow thank you for the fruitful reply. I also have saw the results:
>> A=randn(100, 10);
>> AtA = A'*A;
>> rank(AtA)
10
>> tic;for i = 1:1000; eig(AtA);end; toc;
Elapsed time is 0.000973 seconds.
>> tic;for i = 1:1000; eigs(AtA);end; toc;
Elapsed time is 0.247325 seconds.
I am going to replace eigs with eig.
gonzalo Mier
gonzalo Mier 2020년 4월 3일
Really interesting! Thank you for contribute

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by