A Restricted Pseudoinverse and Its Application to Constrained Minima