seq2dyad function

Organizing indices in a spline basis in the net form