compileGlobalConstraints
Compile global constraints into coefficient inequalities.
Developer documentation: this item describes internal implementation details.
Declaration
[Aineq,bineq] = compileGlobalConstraints(globalConstraints,tKnot,K)
Parameters
globalConstraintsGlobalConstraint arraytKnotper-dimension knot vectorsKspline order per dimension
Returns
Aineqinequality-constraint matrixbineqinequality-constraint right-hand side
Discussion
This helper turns global shape requests into coefficient-space inequalities of the form
\[A_{\mathrm{ineq}}\xi \le 0.\]Positivity uses \(\xi_j \ge 0\), which is sufficient because the terminated B-spline basis is nonnegative. Monotonicity uses first differences of adjacent coefficients along a selected tensor dimension, via monotonicDifferenceMatrix.