(Internal) Make a vector for segment-dimensioned matrix update
getSegmentsToApply
is an internal function for creating a vector for the purpose of updating various matrices that use theta segments as a dimension.
getSegmentsToApply(n_segment, segments)
n_segment
: the total number of segments.segments
: a vector of target segments.getSegmentsToApply
returns a vector.