T3Variations.from_vector ======================== .. py:method:: t3toolbox.frame_variations_format.T3Variations.from_vector(flat, variation_shapes, stack_shape = ()) :staticmethod: .. code-block:: python def from_vector( flat, # shape=(size,) variation_shapes, # (tucker_variation_shapes, tt_variation_shapes) stack_shape: typ.Tuple[int, ...] = (), # full leading stack K + C ) -> 'T3Variations': Inverse of :py:meth:`to_vector`: rebuild variations of the given structure from a 1D vector. ``variation_shapes = (tucker_variation_shapes, tt_variation_shapes)`` (e.g. a frame's :py:attr:`T3Frame.variation_shapes`); ``stack_shape`` is the full leading stack ``K + C``.