cc.redberry.core.transformations.expand
Class ExpandAllTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.expand.ExpandAllTransformation
-
- All Implemented Interfaces:
- Transformation
public final class ExpandAllTransformation extends java.lang.ObjectExpands out all products and integer powers in any part of expression.- 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 ExpandAllTransformationEXPAND_ALLThe default instance.-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description ExpandAllTransformation(Transformation[] transformations)Creates expand transformation with specified additional transformations to be applied after each step of expand.ExpandAllTransformation(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 TensorexpandAll(Tensor tensor)Expands out all products and integer powers in any part of expression.static TensorexpandAll(Tensor tensor, Transformation... transformations)Expands out all products and integer powers in any part of expression and applies specified transformations after each step of expand.Tensortransform(Tensor tensor)Transforms specified tensor and returns the result.
-
-
-
Field Detail
-
EXPAND_ALL
public static final ExpandAllTransformation EXPAND_ALL
The default instance.
-
DefaultExpandTraverseGuide
public static TraverseGuide DefaultExpandTraverseGuide
-
-
Constructor Detail
-
ExpandAllTransformation
public ExpandAllTransformation(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
-
ExpandAllTransformation
public ExpandAllTransformation(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
-
expandAll
public static Tensor expandAll(Tensor tensor)
Expands out all products and integer powers in any part of expression.- Parameters:
tensor- tensor to be transformed- Returns:
- result
-
expandAll
public static Tensor expandAll(Tensor tensor, Transformation... transformations)
Expands out all products and integer powers in any part of expression and applies specified transformations after each step of expand.- Parameters:
tensor- tensor to be transformed- 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