basis_bspline_der Interface
public interface basis_bspline_der
Evaluate first derivatives or a requested low-order local derivative table.
The local overload also returns the first active control index and avoids
allocating a dense nc-entry basis vector.
Module Procedures
private pure subroutine basis_bspline_active_ders(Xt, knot, nc, degree, nder, first, N, dN, d2N)
Return local basis values and optional first or second derivatives.
This convenience overload requests at most order two from
basis_bspline_der_all_active and never forms a dense nc-vector.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nder | |||
| integer, | intent(out) | :: | first | |||
| real(kind=rk), | intent(out), | optional | :: | N(0:degree) | ||
| real(kind=rk), | intent(out), | optional | :: | dN(0:degree) | ||
| real(kind=rk), | intent(out), | optional | :: | d2N(0:degree) |
private pure subroutine basis_bspline_der_A(Xt, knot, nc, degree, dB, B)
Evaluate the dense B-spline basis and its first derivative at one parameter.
Both outputs have length nc; entries outside the local support are
zero. This is the value-and-derivative overload of basis_bspline_der.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt |
Evaluation parameter. |
||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) |
Complete knot vector of size |
|
| integer, | intent(in) | :: | nc |
Number of basis functions. |
||
| integer, | intent(in) | :: | degree |
Polynomial degree . |
||
| real(kind=rk), | intent(out) | :: | dB(nc) |
First derivatives . |
||
| real(kind=rk), | intent(out) | :: | B(nc) |
Basis values . |
private pure subroutine basis_bspline_der_B(Xt, knot, nc, degree, dB)
Evaluate only the dense first derivative of a B-spline basis.
The output has length nc; entries outside the local support are zero.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt |
Evaluation parameter. |
||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) |
Complete knot vector of size |
|
| integer, | intent(in) | :: | nc |
Number of basis functions. |
||
| integer, | intent(in) | :: | degree |
Polynomial degree . |
||
| real(kind=rk), | intent(out) | :: | dB(nc) |
First derivatives . |