is_packed#
- t3toolbox.backend.ut3_operations.is_packed(vectors)#
def is_packed( vectors, # a packed supercore array (single ndarray) OR a ragged len=d sequence of per-mode vectors ) -> bool: # True if already packed (one array), False if a ragged list/tuple of d per-mode arrays
Whether mode
vectorsare packed (a single supercore-shaped ndarray) or ragged (alen=dsequence of per-mode arrays of differing widths). The uniform sampling ops infer packedness from this and mirror it – packed in->packed out, ragged in->ragged out.- Return type:
bool