compute_minimal_ranks ===================== .. py:function:: t3toolbox.backend.ranks.compute_minimal_ranks(shape, tucker_ranks, tt_ranks, use_jax = False) .. code-block:: python def compute_minimal_ranks( shape: typ.Sequence[int], # (N0, ..., N(d-1)) tucker_ranks: typ.Union[ typ.Sequence[int], # (n0,...,n(d-1)) NDArray, # dtype=int, shape=(d,) + stack_shape ], tt_ranks: typ.Union[ typ.Sequence[int], # (r0,...,rd) NDArray, # dtype=int, shape=(d+1,) + stack_shape ], use_jax: bool = False, ) -> typ.Tuple[ typ.Union[ typ.Tuple[int,...], # (n0',...,n(d-1)') NDArray, # dtype=int, shape=(d,) + stack_shape ], # new_tucker_ranks typ.Union[ typ.Tuple[int,...], # (r0',...,rd') NDArray, # dtype=int, shape=(d+1,) + stack_shape ], # new_tt_ranks ]: Find minimal ranks for a generic Tucker tensor train with a given structure.