tensorly.tt_tensor.pad_tt_rank

pad_tt_rank(factor_list, n_padding=1, pad_boundaries=False)[source]

Pads the factors of a Tensor-Train so as to increase its rank without changing its reconstruction

The tensor-train (ring) will be padded with 0s to increase its rank only but not the underlying tensor it represents.

Parameters
factor_listtensor list
n_paddingint, default is 1

how much to increase the rank (bond dimension) by

pad_boundariesbool, default is False

if True, also pad the boundaries (useful for a tensor-ring) should be False for a tensor-train to keep the boundary rank to be 1

Returns
padded_factor_list