Eigendecomposition of a matrix