tv_align_padded_frame ===================== .. py:function:: t3toolbox.backend.padded_frames.tv_align_padded_frame(frame, variations, old_tucker_ranks, old_tt_ranks, tucker_ranks = None, tt_ranks = None, sharing = None, update = ('D', 'U', 'L', 'R')) .. code-block:: python def tv_align_padded_frame( frame: FrameData, # a padded frame: old blocks in the leading slots, stack C variations: VariationsData, # a tangent vector at `frame` (gauged or not), stack C old_tucker_ranks: typ.Sequence[int], # len=d, the old blocks' extents; the zero tensor: (0,)*d old_tt_ranks: typ.Sequence[int], # len=d+1; the zero tensor: (1, 0, ..., 0, 1) tucker_ranks: typ.Optional[typ.Sequence[int]] = None, # len=d, output ranks; None = the frame's own tt_ranks: typ.Optional[typ.Sequence[int]] = None, # len=d+1, output ranks; None = the frame's own sharing: typ.Optional[typ.Sequence] = None, # len=d group labels; None = unshared update: typ.Collection[str] = ('D', 'U', 'L', 'R'), # store letters, any order: 'D' down, 'U' up, 'L' left, 'R' right; the rest transported ) -> typ.Tuple[ FrameData, # the frame at the output ranks: old blocks bitwise, completions aligned NDArray, # movement, shape=C: max over directed edges of ‖g_old − P⁺P⁺ᵀ g_old‖_F ]: One alignment step: each completion replaced by the tangent's leading new directions, old blocks pinned.