R-Matrices, Generalized Inverses, and Calogero—Moser—Sutherland Models