Next: Example programs for B-splines, Previous: Constructing the knots vector, Up: Basis Splines
This function evaluates all B-spline basis functions at the position x and stores them in B, so that the ith element of B is B_i(x). B must be of length n = nbreak + k - 2. This value is also stored in
w->n
. It is far more efficient to compute all of the basis functions at once than to compute them individually, due to the nature of the defining recurrence relation.