Implements a small set of functions equivalent to numpy that operate on the array-like matrix-friendly API classes MVar, MLinExpr, MQuadExpr, MConstr, MQConstr, and MGenConstr.