This computes a matrix of coefficients of the first derivatives of monotonic local linear sharpening problem.
MonoMat(xgrid, x, h, d)
numeric vector of locations where monotonicity constraint is to be enforced
numeric explanatory vector
numeric bandwidth
local polynomial degree, can be either 0 or 1
a list containing the A matrix and the number of rows in A.