ufv_weights_from_ut3_weights#
- t3toolbox.backend.ufv_operations.ufv_weights_from_ut3_weights(weights)#
def ufv_weights_from_ut3_weights( weights: typ.Tuple[NDArray, NDArray, typ.Tuple[NDArray, NDArray]], # UT3Weights .data ) -> UT3FrameWeightsData: # (up, down, left, right, masks) -- a tangent metric
Build uniform frame weights (a tangent metric) from uniform base-point edge weights – the twin of
fv_weights_from_t3_weights, and the same slicing, applied to supercores and masks:up = down = tucker;left = tt[:-1],right = tt[1:]. The TT slicing encodes theH_ibond convention (H_i’s left bond is TT bondi, its right bond is bondi+1), which turns thed+1bond supercore into the twod-length families – non-obvious, hence a named function.The result pairs with a minimal-rank tangent (where the complement rank
nDequals the Tucker ranknU, as forut3svdoutput). A non-minimal tangent hasnD < nUand would mismatch thedownfamily at use – caught byufv_weights_consistentrather than silently absorbed.