added NaN test for eigenvalues_sym