matrix: add general eigenvalue problem