Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java eigensolvers

Does anyone know of an eigensolver in Java that can give me just several smallest eigenvectors w/o computing the whole eigendecomposition (namely, second smallest EV)? I have looked at Colt, Jama, MTJ, UJMP, but these packages compute all eigenvectors.

like image 466
lynxoid Avatar asked Mar 11 '11 21:03

lynxoid


1 Answers

Can you describe your matrix in more detail? Is it sparse? In general, sparse linear algebra packages have methods to compute only a few of the smallest or largest eigenpairs. For example, you can try to use ARPACK from within Java.

Another idea is just to write your own version of the Power Method, which is good at finding a few extreme eigenvalues very quickly. For example, see Eigenvalue Template Book (Hermitian) if your matrix is Hermitian or Eigenvalue Template Book (non-Hermitian) if your matrix is non-Hermitian.

like image 126
SplittingField Avatar answered Oct 16 '22 10:10

SplittingField