basis_bspline_der_all_active Subroutine
- Seyed Ali Ghasemi
- BSD 3-Clause
- 109 statements
public pure subroutine basis_bspline_der_all_active(Xt, knot, nc, degree, nder, first, ders, side, wrap)
Evaluate all nonzero B-spline basis derivatives through nder.
Implements Algorithm A2.3 of Piegl and Tiller, The NURBS Book,
2nd edition. Rows above degree are identically zero.
The caller supplies ders(0:nder,0:degree); on return first is the
one-based index associated with column zero.
For , row contains
; rows are zero.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt |
Parameter value on, or within tolerance of, the active interval. |
||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) |
Valid knot vector. |
|
| integer, | intent(in) | :: | nc |
Number of basis functions. |
||
| integer, | intent(in) | :: | degree |
Polynomial degree. |
||
| integer, | intent(in) | :: | nder |
Highest derivative order requested; must be nonnegative. |
||
| integer, | intent(out) | :: | first |
First globally active one-based basis index. |
||
| real(kind=rk), | intent(out), | contiguous | :: | ders(0:,0:) |
Derivative table; row |
|
| integer, | intent(in), | optional | :: | side |
At an interior knot use the left trace (-1) or right trace (0, +1). |
|
| logical, | intent(in), | optional | :: | wrap |
Enable wrapping before selecting the span. |