UT3FrameWeights.from_ut3weights#
- classmethod t3toolbox.uniform_frame_variations_format.UT3FrameWeights.from_ut3weights(weights)#
def from_ut3weights(cls, weights: 'ut3.UT3Weights') -> 'UT3FrameWeights':
Build a tangent metric from uniform base-point edge weights (e.g.
UT3Weights.from_ut3svd(x)):up = down = tucker,left = tt[:-1],right = tt[1:], on the supercores and the masks. The TT slicing follows theH_ibond convention (H_i’s left bond is TT bondi, its right bond is bondi+1) – simple but convention-dependent, hence a named method.The result pairs with a minimal-rank tangent (where the complement rank
nDequals the Tucker ranknU, as forut3svdoutput); a non-minimal tangent hasnD < nUand is rejected byis_consistent_with()rather than silently absorbed. The Grasedyck-Kramer metric isUT3FrameWeights.from_ut3weights(UT3Weights.from_ut3svd(x)).reciprocal().- Parameters:
weights (UT3Weights)
- Return type: