Search code examples
numericallapack

Accuracy of ZHEEV and ZHEEVD


I am using LAPACK to diagonalize complex Hermitian matrices. I can choose between ZHEEV and ZHEEVD. Which one of these routines is more accurate for matrices of the size 40 and a range of eigenvalues from 1E-2 to 1E1?


Solution

  • ZHEEVD uses a divide-and-conquer method to compute eigenvalues.

    If your matrices are 40 x 40 and the eigenvalues are within the range [1e-2, 1e1] then you should have absolutely no numerical issues. You can use either routine.