valid_knot_vector Function
- Seyed Ali Ghasemi
- BSD 3-Clause
- 23 statements
public pure function valid_knot_vector(knot, nc, degree) result(valid)
Validate the structural invariants of a one-dimensional spline space.
A valid vector is finite and nondecreasing, has exactly
nc+degree+1 entries, has no run longer than degree+1, and has a
positive active interval. Open, clamped, one-sided clamped, unclamped,
uniform, nonuniform, and periodic-form vectors can all satisfy this
predicate; endpoint multiplicity is not prescribed. Here
"periodic-form" means only that exterior knots and unclamped active
endpoints can be represented. This structural predicate does not verify
periodic knot-spacing extension or repeated control data; use
periodic_topology when those data are available.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) |
Candidate knot vector. |
|
| integer, | intent(in) | :: | nc |
Number of control points. |
||
| integer, | intent(in) | :: | degree |
Candidate polynomial degree, satisfying `0<=degree |