Function to generate unit basis vector according to polynomial order
and derivative order. This function returns unit vector that is the same size
as the vector returned by poly_base(x, p).
Usage
basis_vec(x, p, mu)
Value
Vector of appropriate length with ones corresponding to entries of order mu.