How expensive is it to compute the eigenvalues of a matrix?

后端 未结 8 985
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 22:51

How expensive is it to compute the eigenvalues of a matrix?

What is the complexity of the best algorithms?

How long might it take in practice if I have a 1

8条回答
  •  没有蜡笔的小新
    2020-12-07 23:24

    With big matrices you usually don't want all the eigenvalues. You just want the top few to do (say) a dimension reduction.

    The canonical algorithm is the Arnoldi-Lanczos iterative algorithm implemented in ARPACK:

    www.caam.rice.edu/software/ARPACK/

    There is a matlab interface in eigs:

    http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/eigs.html

    eigs(A,k) and eigs(A,B,k) return the k largest magnitude eigenvalues.
    

    And there is now an R interface as well:

    http://igraph.sourceforge.net/doc-0.5/R/arpack.html

提交回复
热议问题