Skip to content
ForCADDocumentation

restrict_control_net Subroutine

public pure subroutine restrict_control_net(Xc, Wc, nc, dir, knot, degree, a, b, knots, Xout, Wout, err)

Restrict one tensor direction without sampling or a dense extraction map. Complete source geometry and a valid direction are caller preconditions. Output weights retain a common workspace gauge to avoid rounding small weights independently when restoring the source's arbitrary projective scale.

Arguments

Type IntentOptional 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) :: a
real(kind=rk), intent(in) :: b
real(kind=rk), intent(out), allocatable :: knots(:)
real(kind=rk), intent(out), allocatable :: Xout(:,:)
real(kind=rk), intent(out), allocatable :: Wout(:)
type(debug), intent(inout) :: err