22 void casadi_de_boor(T1 x,
const T1* knots, casadi_int n_knots, casadi_int degree, T1* boor) {
25 for (d=1;d<degree+1;++d) {
26 for (i=0;i<n_knots-d-1;++i) {
29 bottom = knots[i + d] - knots[i];
30 if (bottom) b = (x - knots[i]) * boor[i] / bottom;
31 bottom = knots[i + d + 1] - knots[i + 1];
32 if (bottom) b += (knots[i + d + 1] - x) * boor[i + 1] / bottom;