Documentation of 'cc.redberry.core.transformations.expand.ExpandTransformation' Java class
ExpandTransformation
cc.redberry.core.transformations.expand

Class ExpandTransformation

  • All Implemented Interfaces:
    Transformation


    public final class ExpandTransformation
    extends java.lang.Object
    Expands out products and positive integer powers in tensor.
    Since:
    1.0
    • Constructor Detail

      • ExpandTransformation

        public ExpandTransformation(Transformation... transformations)
        Creates expand transformation with specified additional transformations to be applied after each step of expand.
        Parameters:
        transformations - transformations to be applied after each step of expand
      • ExpandTransformation

        public ExpandTransformation(Transformation[] transformations,
                                    TraverseGuide traverseGuide)
        Creates expand transformation with specified additional transformations to be applied after each step of expand and leaves unexpanded parts of expression specified by traverseGuide.
        Parameters:
        transformations - transformations to be applied after each step of expand
        traverseGuide - traverse guide
    • Method Detail

      • expand

        public static Tensor expand(Tensor tensor)
        Expands out products and positive integer powers in tensor.
        Parameters:
        tensor - tensor
        Returns:
        result
      • expand

        public static Tensor expand(Tensor tensor,
                                    Transformation... transformations)
        Expands out products and positive integer powers in tensor and applies specified transformations after each step of expand.
        Parameters:
        tensor - tensor
        transformations - to be applied after each step of expand
        Returns:
        result
      • transform

        public Tensor transform(Tensor tensor)
        Description copied from interface: Transformation
        Transforms specified tensor and returns the result.
        Specified by:
        transform in interface Transformation
        Parameters:
        tensor - tensor
        Returns:
        transformed tensor

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.