uniform_padded_frames#
The padded frame at a zero-padded rank increase, on uniform frame data, in BLOCK LAYOUT.
Every rank slot of a padded frame is [old block | new block]: the old frame’s supercores as given (any mask pattern,
junk masked to zero once), then the completion, each padded to one width with its own mask. Tucker slots are
[Na | Ka] and bond slots [Rb | Kb], so the only positional fact is the split (Na, Rb).
ufv_empty_frame is the frame of the zero tensor (Na = 0, Rb = 1). ufv_padded_frame is the hint-free start,
the uniform twin of padded_frames.fv_padded_frame: the same seeds (every store’s slot-indexed rows of its keyed Gaussian
stream, generated on the host at the size of the store’s ragged matricization or unfolding and placed at the real rows in
their ragged row-major order), completed by linalg.pad_safe_pinned_completion, one batched completion per store.
utv_align_padded_frame is one alignment step, the uniform twin of padded_frames.tv_align_padded_frame: the maps over modes are batched contractions, the
sweeps scans with module-level bodies, and every edge’s completion one linalg.pad_safe_svd. The host prepares the
masks, selections and group tables; the arithmetic is one jittable kernel, run eagerly here.
ufv_compact_frame gathers a frame junk-last at a level’s widths. ufv_aligned_padded_frame is the loop, the
twin of padded_frames.fv_aligned_padded_frame (the same schedule and pair stop rule), compacted at exit; it runs
eagerly, or under use_jit as ONE jax.jit of the whole loop.
Functions#
|
The frame of the zero tensor in block layout: its orthogonal representation's prefix masks at widths (0, 0, 1, 1). |
|
The hint-free padded frame in block layout: the old frame in the old blocks, the completions by the hint-free convention. |
|
One alignment step in block layout: the uniform twin of |
|
The frame with every store's real slots first (in their order) at |
|
The aligned padded frame in block layout, compacted to |