tt_operations#
Operations on bare tensor-train chains (the tt family).
A “tt chain” is the TT core sequence alone – no Tucker cores, no masks: ragged (a len=d
tuple of stack_shape+(rLi,ni,rR(i+1)) arrays) or uniform (one (d,)+stack_shape+(r,n,r)
supercore). Every public function here is polymorphic over the two (inferred via
is_ndarray), following the shared-sweep precedent of tt_orthogonalization; the ragged
name doubles as the polymorphic name, so there is no separate utt_ twin.
Functions#
|
Reverse a tensor-train chain: reverse the mode order and swap the two bond axes of each core. |
|
Collapse the leading and trailing TT bonds to one without changing the represented tensor. |
|
Increase/decrease Tucker and/or TT ranks for TT cores using zero padding/truncation. |
|
Accumulate left-to-right the partial contractions of two TT chains sharing tensor indices. |
|
As |