New version for symmetric matrices.