fv_aligned_padded_frame ======================= .. py:function:: t3toolbox.backend.padded_frames.fv_aligned_padded_frame(old_frame, tucker_ranks, tt_ranks, hint, project, 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 fv_aligned_padded_frame( old_frame: FrameData, # the old frame, stack C (fv_empty_frame for the zero tensor) tucker_ranks: typ.Sequence[int], # len=d, target tt_ranks: typ.Sequence[int], # len=d+1, target (boundary 1) hint: typ.Any, # opaque: handed to `project` unread project: typ.Callable, # project(frame, hint) -> VariationsData: ONE fixed tensor projected at `frame` sharing: typ.Optional[typ.Sequence] = None, # len=d group labels; None = unshared oversampling: int = ALIGN_OVERSAMPLING, # p: working ranks = ranks.oversampled_ranks(shape, target, p, sharing) oversampled_passes: int = ALIGN_OVERSAMPLED_PASSES, # passes at the working ranks before the truncating pass max_passes: int = ALIGN_MAX_PASSES, # passes in all, the truncating pass included; 0 = the hint-free start at the target tol: float = ALIGN_TOL, # early exit on the movement alternate: bool = ALIGN_ALTERNATE, # two-colour passes after the truncating pass seed: int = ZERO_FRAME_SEED, # the start's seed streams use_jit: bool = False, # the old frame to jax, the host loop calling a memoized jitted step; else eager ) -> typ.Tuple[ FrameData, # the aligned padded frame at the target ranks typ.Tuple[NDArray, ...], # movements, one per pass, each shape=C ]: The aligned padded frame: the hint-free start, then alignment passes against ``project(frame, hint)``.