remove_knots_A_5_8 Subroutine
- Seyed Ali Ghasemi
- BSD 3-Clause
- 13 statements
public pure subroutine remove_knots_A_5_8(p, knot, Pw, u, r, s, num, t, knot_new, Pw_new, approximate)
Attempt knot removal using Algorithm A5.8 of Piegl and Tiller.
r must be the one-based index of the final occurrence of the interior
knot u, s must be its complete current multiplicity, and
1<=num<=s. Each removal is accepted by componentwise comparisons in the
supplied control-variable space using
where C_c is the largest magnitude among the affected control coefficients in that coordinate. Polynomial callers pass control coordinates. Rational callers must pass homogeneous controls ; the resulting test is then in homogeneous coordinate space and is not a certified Euclidean geometry error bound. The two acceptance branches are mutually exclusive: `j-i
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | p | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Pw(:,:) | ||
| real(kind=rk), | intent(in) | :: | u | |||
| integer, | intent(in) | :: | r | |||
| integer, | intent(in) | :: | s | |||
| integer, | intent(in) | :: | num | |||
| integer, | intent(out) | :: | t | |||
| real(kind=rk), | intent(out), | allocatable | :: | knot_new(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Pw_new(:,:) | ||
| logical, | intent(in), | optional | :: | approximate |
Candidate-only mode; callers must separately bound physical error. |