cc.redberry.core.transformations.expand
Class ExpandTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.expand.ExpandTransformation
-
- All Implemented Interfaces:
- Transformation
public final class ExpandTransformation extends java.lang.ObjectExpands out products and positive integer powers in tensor.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.redberry.core.transformations.Transformation
Transformation.Util
-
-
Field Summary
Fields Modifier and Type Field and Description static TraverseGuideDefaultExpandTraverseGuidestatic ExpandTransformationEXPANDThe default instance.-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description ExpandTransformation(Transformation... transformations)Creates expand transformation with specified additional transformations to be applied after each step of expand.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 bytraverseGuide.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Tensorexpand(Tensor tensor)Expands out products and positive integer powers in tensor.static Tensorexpand(Tensor tensor, Transformation... transformations)Expands out products and positive integer powers in tensor and applies specified transformations after each step of expand.Tensortransform(Tensor tensor)Transforms specified tensor and returns the result.
-
-
-
Field Detail
-
EXPAND
public static final ExpandTransformation EXPAND
The default instance.
-
DefaultExpandTraverseGuide
public static TraverseGuide DefaultExpandTraverseGuide
-
-
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 bytraverseGuide.- Parameters:
transformations- transformations to be applied after each step of expandtraverseGuide- 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- tensortransformations- to be applied after each step of expand- Returns:
- result
-
transform
public Tensor transform(Tensor tensor)
Description copied from interface:TransformationTransforms specified tensor and returns the result.- Specified by:
transformin interfaceTransformation- Parameters:
tensor- tensor- Returns:
- transformed tensor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG