t3_conversions#

Conversions between a (ragged) Tucker tensor train and other representations (dense tensor, flat vector, plain tensor train, canonical/CP factors).

Functions#

t3_to_dense(x[, squash_tails])

Fully contract a Tucker tensor train to create a dense tensor.

t3_to_dense_chain(tucker_cores, tt_cores[, squash_tails])

Chain-contract (Tucker-absorbed) TT cores into a dense tensor -- the representation-agnostic core

t3_to_vector(x)

Converts T3 to a 1D vector containing all of the core entries.

t3_from_vector(x_flat, shape, tucker_ranks, tt_ranks)

Constructs a T3 from a 1D vector containing the core entries

t3_to_tensor_train(x)

Convert TuckerTensorTrain to tensor train by contracting Tucker bases with TT cores.

t3_from_tensor_train(tt_cores)

Convert tensor train into Tucker tensor train by using identity matrices for Tucker bases.

t3_from_canonical(factors)

Constructs Tucker tensor train from Canonical decomposition.