Include polyeig with three input matrices.