TuckerTensorTrain.oversampled_ranks#

t3toolbox.tucker_tensor_train.TuckerTensorTrain.oversampled_ranks(p, sharing=None)#
def oversampled_ranks(
        self,
        p:        int,                                 # the rank increment, p >= 0
        sharing:  typ.Optional[typ.Sequence] = None,   # len=d group labels; None = unshared
) -> typ.Tuple[
    typ.Tuple[int, ...],   # tucker ranks, len=d
    typ.Tuple[int, ...],   # tt ranks, len=d+1
]:

This point’s ranks plus p on every Tucker rank and interior bond, made structurally minimal and never below the current ones: the working ranks of an oversampled alignment (fv_aligned_padded_frame’s oversampling). See oversampled_ranks().

Examples

>>> import t3toolbox.tucker_tensor_train as t3
>>> t3.TuckerTensorTrain.zeros((4, 6, 5), (2, 3, 2), (1, 2, 2, 1)).oversampled_ranks(2)
((4, 5, 4), (1, 4, 4, 1))
Parameters:
  • p (int)

  • sharing (Optional[Sequence])

Return type:

Tuple[Tuple[int, …], Tuple[int, …]]