Fix error in function for hermitian matrix eigenvalue computation