matrix: fix general eigenvalue computation