ut3_leaf_structure#
- t3toolbox.backend.ut3_operations.ut3_leaf_structure(d)#
def ut3_leaf_structure(d: int): # leaf-structure template for stacking.apply_func_to_leaf_subtrees
Template marking one uniform-T3
.dataleaf for the tree machinery instacking.py.The leaf is
(tucker_supercore, tt_supercore, shape, (tucker_mask, tt_mask)). Theshapeint tuple hasdint leaves, so the template must encode its length: a bareNonethere fails to match (an int tuple is aSequence, unlike the ndarray leaves, so the walker would recurse into it).- Parameters:
d (int)