ufv_aligned_padded_frame ======================== .. py:function:: t3toolbox.backend.uniform_padded_frames.ufv_aligned_padded_frame(old_frame_data, tucker_ranks, tt_ranks, hint, project, level_widths, sharing = None, oversampling = ALIGN_OVERSAMPLING, oversampled_passes = ALIGN_OVERSAMPLED_PASSES, max_passes = ALIGN_MAX_PASSES, tol = ALIGN_TOL, alternate = ALIGN_ALTERNATE, seed = ZERO_FRAME_SEED, use_jit = False) .. code-block:: python def ufv_aligned_padded_frame( old_frame_data: UFrameData, # the old frame, stack C (ufv_empty_frame for the zero tensor) tucker_ranks: typ.Union[typ.Sequence[int], NDArray], # len=d or HOST int (d,)+C, target tt_ranks: typ.Union[typ.Sequence[int], NDArray], # len=d+1 or HOST int (d+1,)+C, target hint: typ.Any, # opaque: handed to `project` unread project: typ.Callable, # project(frame_data, hint) -> UVariationsData (or the bare (V, H) pair); traceable and module-level under use_jit level_widths: typ.Tuple[int, int, int, int], # (WD, WU, WL, WR): the compaction widths (the level's frame) sharing: typ.Optional[typ.Sequence] = None, # len=d group labels; None = unshared oversampling: int = ALIGN_OVERSAMPLING, # as fv_aligned_padded_frame (constants from padded_frames) oversampled_passes: int = ALIGN_OVERSAMPLED_PASSES, max_passes: int = ALIGN_MAX_PASSES, # static under use_jit (the movements' length) tol: float = ALIGN_TOL, # traced under use_jit alternate: bool = ALIGN_ALTERNATE, seed: int = ZERO_FRAME_SEED, use_jit: bool = False, # the WHOLE loop as one jax.jit; else a host loop, eager kernel ) -> typ.Tuple[ UFrameData, # the aligned frame compacted to level_widths, prefix masks NDArray, # movements, shape=(max_passes,)+C, NaN after the last pass (both modes) ]: The aligned padded frame in block layout, compacted to ``level_widths``: the uniform twin of ``fv_aligned_padded_frame``.