Evaluation of a generalized inverse matrix and projector