UT3FrameWeights.from_t3frameweights#

static t3toolbox.uniform_frame_variations_format.UT3FrameWeights.from_t3frameweights(weights, nU=None, nD=None, rL=None, rR=None)#
def from_t3frameweights(
        weights: 'bvf.T3FrameWeights',
        nU: typ.Optional[int] = None,   # padded up rank    (default max); pass to match the tangent's pad
        nD: typ.Optional[int] = None,   # padded down rank  (default max)
        rL: typ.Optional[int] = None,   # padded left rank  (default max)
        rR: typ.Optional[int] = None,   # padded right rank (default max)
) -> 'UT3FrameWeights':

Pack a ragged T3FrameWeights into a uniform one.

Pass the padded sizes to match the tangent these weights will pair with (e.g. from frame.uniform_structure); the defaults pad tightly to the weights’ own max ranks.

Parameters:
  • weights (T3FrameWeights)

  • nU (t3toolbox.backend.common.typ.Optional[int])

  • nD (t3toolbox.backend.common.typ.Optional[int])

  • rL (t3toolbox.backend.common.typ.Optional[int])

  • rR (t3toolbox.backend.common.typ.Optional[int])

Return type:

UT3FrameWeights