pack_if_ragged ============== .. py:function:: t3toolbox.backend.ut3_operations.pack_if_ragged(vectors, N = None) .. code-block:: python def pack_if_ragged( vectors, # packed array (returned as-is) OR ragged len=d sequence, ith elm_shape=stack+(Ni,) N: int = None, # padded length (default max Ni); ignored when ``vectors`` is already packed ) -> NDArray: # packed, shape=(d,)+stack_shape+(N,) Pack ``vectors`` iff ragged (a ``len=d`` sequence); an already-packed array is returned unchanged. The input side of the sampling-op packedness mirror (:py:func:`is_packed`).