cc.redberry.core.transformations.collect
Class CollectTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.collect.CollectTransformation
-
- All Implemented Interfaces:
- Transformation
public class CollectTransformation extends java.lang.Object implements Transformation
Collects together terms that involve the same powers of objects matching specified simple tensors or tensor fields.- Since:
- 1.1.5
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cc.redberry.core.transformations.Transformation
Transformation.Util
-
-
Field Summary
-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description CollectTransformation(SimpleTensor... patterns)Creates Collect transformation that collects together terms that involve the same powers of objects matching specified simple tensors or tensor fields.CollectTransformation(SimpleTensor[] patterns, Transformation[] transformations)Creates Collect transformation that collects together terms that involve the same powers of objects matching specified simple tensors or tensor fields and applies specified transformations to the expression that forms the coefficient of each term obtained.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tensortransform(Tensor t)Transforms specified tensor and returns the result.
-
-
-
Constructor Detail
-
CollectTransformation
public CollectTransformation(SimpleTensor[] patterns, Transformation[] transformations)
Creates Collect transformation that collects together terms that involve the same powers of objects matching specified simple tensors or tensor fields and applies specified transformations to the expression that forms the coefficient of each term obtained.- Parameters:
patterns- specified simple tensors or tensor fieldstransformations- transformations to be applied to the expression that forms the coefficient of each term obtained
-
CollectTransformation
public CollectTransformation(SimpleTensor... patterns)
Creates Collect transformation that collects together terms that involve the same powers of objects matching specified simple tensors or tensor fields.- Parameters:
patterns- specified simple tensors or tensor fields
-
-
Method Detail
-
transform
public Tensor transform(Tensor t)
Description copied from interface:TransformationTransforms specified tensor and returns the result.- Specified by:
transformin interfaceTransformation- Parameters:
t- tensor- Returns:
- transformed tensor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG