t3_entries#

t3toolbox.backend.entries.t3_entries(x, index)#
def t3_entries(
        x: typ.Union[
            typ.Tuple[typ.Sequence[NDArray], typ.Sequence[NDArray]], # (tucker_cores, tt_cores)
            typ.Tuple[NDArray, NDArray], # (tucker_supercore, tt_supercore)
        ],
        index: NDArray, # dtype=int, shape=(d,)+vsw. (or convertible to int array of this shape)
) -> NDArray: # shape=vsw+vsc (W + C, base-inner)

Compute entries of a Tucker tensor train.

Parameters:
  • x (t3toolbox.backend.common.typ.Union[t3toolbox.backend.common.typ.Tuple[t3toolbox.backend.common.typ.Sequence[NDArray], t3toolbox.backend.common.typ.Sequence[NDArray]], t3toolbox.backend.common.typ.Tuple[NDArray, NDArray]])

  • index (NDArray)

Return type:

NDArray