slice_control_net Subroutine
public pure subroutine slice_control_net(Xc, Wc, nc, dir, knot, degree, Xt, wrap_parameter, Xout, Wout, err)
Contract one tensor direction in homogeneous coordinates, retaining the others in order. The source geometry and direction must be valid. Only the active degree+1 controls on each line are read; no full homogeneous net or dense operator is allocated. Coordinate numerators and weight denominators use separate radix gauges so normalizing a small weight cannot erase a finite control. Output weights share one representable gauge; lossy subnormal scaling is rejected.
Arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | allocatable | :: | Wc(:) | ||
| integer, | intent(in) | :: | nc(:) | |||
| integer, | intent(in) | :: | dir | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| real(kind=rk), | intent(in) | :: | Xt | |||
| logical, | intent(in) | :: | wrap_parameter | |||
| real(kind=rk), | intent(out), | allocatable | :: | Xout(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Wout(:) | ||
| type(debug), | intent(inout) | :: | err |