tensor_basis_derivative_local Subroutine
- Seyed Ali Ghasemi
- BSD 3-Clause
- 112 statements
public pure subroutine tensor_basis_derivative_local(first1, nc1, ders1, first2, nc2, ders2, first3, nc3, ders3, values, Wc, elem, checked)
Compute one tensor-product B-spline or rational basis derivative on its local support.
The three directional derivative tables include rows zero through the
requested derivative order. Unused directions are represented by a
table containing one. Rational derivatives use a
multivariate quotient recurrence that extends the rational-surface
recurrence in Piegl and Tiller, The NURBS Book, 2nd edition, Algorithm
A4.4 to three tensor-product directions.
The derivative multi-index is given by the last row present in each
directional table. For example, upper row bounds (1,0,2) request
.
values uses direction-1-fastest local ordering. Optional elem selects
zero-order values in list order, retaining repeats and zeroing invalid or inactive IDs.
The rational path evaluates numerator and denominator derivatives in a
common exact radix-power gauge, so a uniform finite weight rescaling does
not alter the recurrence.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | first1 | |||
| integer, | intent(in) | :: | nc1 | |||
| real(kind=rk), | intent(in), | contiguous | :: | ders1(0:,0:) | ||
| integer, | intent(in) | :: | first2 | |||
| integer, | intent(in) | :: | nc2 | |||
| real(kind=rk), | intent(in), | contiguous | :: | ders2(0:,0:) | ||
| integer, | intent(in) | :: | first3 | |||
| integer, | intent(in) | :: | nc3 | |||
| real(kind=rk), | intent(in), | contiguous | :: | ders3(0:,0:) | ||
| real(kind=rk), | intent(out), | contiguous | :: | values(0:) |
Supported derivative values, or selected values when |
|
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Global rational weights, or one local weight per |
| integer, | intent(in), | optional | :: | elem(:) |
Zero-order selection with matching local weights. |
|
| logical, | intent(in), | optional | :: | checked |
Signal lost rational derivative workspace with nonfinite values. |