An application of the Cayley-Hamilton theorem to generalized matrix inversion.