Fast solution to very small eigenvalue problem

From: Mark Mackey (markm_at_chiark.greenend.org.uk)
Date: 06/24/04


Date: 24 Jun 2004 17:40:21 +0100 (BST)

Hi all.

I need to find the eigenvector corresponding to the largest eigenvalue
of a 4x4 matrix very quickly (because I'm doing it on hundreds of
thousands of 4x4 matrices). The current code I'm maintaining has a
simple Jacobi solver, which is (a) slow (it only does 30K matrices/s on
my PC), and (b) probably overkill, as it returns all of the
eigenvectors. I've vaguely looked at LAPACK etc, but those routines are
AFAIK optimised for good performance on large matrices, not small ones.

Does anyone have any suggestions as to the most efficient way to solve
this problem? Extreme accuracy is not required. 4x4 is probably small
enough that there's an analytic solution :).

-- 
Mark Mackey 
"The determined Real Programmer can write Fortran programs in any language."
		 - "Real Programmers don't use Pascal"


Relevant Pages

  • Fast solution to very small eigenvalue problem
    ... I need to find the eigenvector corresponding to the largest eigenvalue ... I've vaguely looked at LAPACK etc, but those routines are ... Extreme accuracy is not required. ... "The determined Real Programmer can write Fortran programs in any language." ...
    (comp.programming)
  • Re: Fast solution to very small eigenvalue problem
    ... >variational principle. ... The problem involves aligning molecules in 3D. ... the eigenvector corresponding to the largest eigenvalue of that matrix ... "The determined Real Programmer can write Fortran programs in any language." ...
    (comp.programming)
  • Re: Fast solution to very small eigenvalue problem
    ... >variational principle. ... The problem involves aligning molecules in 3D. ... the eigenvector corresponding to the largest eigenvalue of that matrix ... "The determined Real Programmer can write Fortran programs in any language." ...
    (sci.math.num-analysis)
  • Eigenvector routine....
    ... Does anyone know of a small, simple, freely available Eigenvector routine? ... Numerical Recipes. ... get the routines themselves, but I'd rather replace the routines with ... I'd like to just pull in the relevant code. ...
    (comp.lang.c)
  • Re: Fast solution to very small eigenvalue problem
    ... Mark Mackey wrote: ... > I need to find the eigenvector corresponding to the largest eigenvalue ... Extreme accuracy is not required. ... > enough that there's an analytic solution:). ...
    (comp.programming)