diff

Return a tensor spline representing mixed partial derivatives.


Declaration

 dspline = diff(self,derivativeOrders)

Parameters

  • self TensorSpline instance
  • derivativeOrders derivative order per dimension

Returns

  • dspline TensorSpline representing the derivative

Discussion

Use a scalar derivative order in 1-D or a derivative-order vector with one entry per dimension.

The implementation differentiates the tensor-product coefficients along each requested dimension and reduces the degree in those dimensions by the corresponding derivative orders.

  dspline = diff(spline);
  dFdx = diff(spline, [1 0]);