Skip to content
ForCADDocumentation

basis_bspline_2der Interface

public interface basis_bspline_2der

Evaluate B-spline basis derivatives through second order.

Optional overloads return the lower derivative orders in the same call.


Module Procedures

private pure subroutine basis_bspline_2der_A(Xt, knot, nc, degree, d2B, dB, B)

Evaluate dense B-spline values and derivatives through second order.

Each output has length nc; unsupported derivatives, including all second derivatives when degree<2, are returned as zero.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: Xt

Evaluation parameter.

real(kind=rk), intent(in), contiguous :: knot(:)

Complete knot vector of size nc+degree+1.

integer, intent(in) :: nc

Number of basis functions.

integer, intent(in) :: degree

Polynomial degree .

real(kind=rk), intent(out) :: d2B(nc)

Second derivatives .

real(kind=rk), intent(out) :: dB(nc)

First derivatives .

real(kind=rk), intent(out) :: B(nc)

Basis values .

private pure subroutine basis_bspline_2der_B(Xt, knot, nc, degree, d2B, dB)

Evaluate dense first and second derivatives of a B-spline basis.

Values are omitted; both derivative arrays have length nc and are zero outside the local support.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: Xt

Evaluation parameter.

real(kind=rk), intent(in), contiguous :: knot(:)

Complete knot vector of size nc+degree+1.

integer, intent(in) :: nc

Number of basis functions.

integer, intent(in) :: degree

Polynomial degree .

real(kind=rk), intent(out) :: d2B(nc)

Second derivatives .

real(kind=rk), intent(out) :: dB(nc)

First derivatives .

private pure subroutine basis_bspline_2der_C(Xt, knot, nc, degree, d2B)

Evaluate only the dense second derivative of a B-spline basis.

The output has length nc; entries outside local support and all entries for degree<2 are zero.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: Xt

Evaluation parameter.

real(kind=rk), intent(in), contiguous :: knot(:)

Complete knot vector of size nc+degree+1.

integer, intent(in) :: nc

Number of basis functions.

integer, intent(in) :: degree

Polynomial degree .

real(kind=rk), intent(out) :: d2B(nc)

Second derivatives .