ufv_padded_frame#

t3toolbox.backend.uniform_padded_frames.ufv_padded_frame(old_frame_data, tucker_ranks, tt_ranks, sharing=None, seed=ZERO_FRAME_SEED)#
def ufv_padded_frame(
        old_frame_data:  UFrameData,                                  # the old frame at its own widths, any mask pattern, stack C
        tucker_ranks:    typ.Union[typ.Sequence[int], NDArray],       # len=d, or HOST int (d,)+C (per stack element)
        tt_ranks:        typ.Union[typ.Sequence[int], NDArray],       # len=d+1, or HOST int (d+1,)+C

        sharing:         typ.Optional[typ.Sequence] = None,           # len=d group labels; None = unshared
        seed:            int = ZERO_FRAME_SEED,                       # the keyed seed streams
) -> typ.Tuple[
    UFrameData,            # block layout: [old block | new block] per slot, old frame as given (junk zeroed), completions real-first
    typ.Tuple[int, int],   # split (Na, Rb): the static old-block widths
]:

The hint-free padded frame in block layout: the old frame in the old blocks, the completions by the hint-free convention.

Parameters:
  • old_frame_data (UFrameData)

  • tucker_ranks (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[int], NDArray])

  • tt_ranks (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Sequence[int], NDArray])

  • sharing (t3toolbox.backend.common.typ.Optional[t3toolbox.backend.common.typ.Sequence])

  • seed (int)

Return type:

t3toolbox.backend.common.typ.Tuple[UFrameData, t3toolbox.backend.common.typ.Tuple[int, int]]