pack_sample#

t3toolbox.backend.uniform_fitting.pack_sample(name, sample, N)#
def pack_sample(name, sample, N):

Pack the loop-invariant mode-vectors of sample once (mirror-tolerant: packed input is kept).

A boundary helper (the uniform kinds run on packed vectors of width N): dispatches pack_if_ragged() per sampling-kind (ww for apply/probe, both ww/pp for the derivative kinds; the integer index is never packed). Used by uniform_least_squares_problem() and the frontend t3toolbox.fitting uniform models.