cc.redberry.core.transformations.powerexpand
Class PowerUnfoldTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.powerexpand.PowerUnfoldTransformation
-
- All Implemented Interfaces:
- Transformation
public final class PowerUnfoldTransformation extends java.lang.Object implements Transformation
Expands all powers of products and powers with respect to specified variables and unwraps powers of indexed arguments into products (e.g. (A_m*A^m)**2 -> A_m*A^m*A_a*A^a).- Since:
- 1.1.5
-
-
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 PowerUnfoldTransformationPOWER_UNFOLD_TRANSFORMATION-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description PowerUnfoldTransformation(Indicator<Tensor> toExpandIndicator)Creates transformation that expands all powers of products and powers and unwraps powers of indexed arguments into products (e.g.PowerUnfoldTransformation(SimpleTensor[] vars)Creates transformation that expands all powers of products and powers with respect to specified variables and unwraps powers of indexed arguments into products (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tensortransform(Tensor t)Transforms specified tensor and returns the result.
-
-
-
Field Detail
-
POWER_UNFOLD_TRANSFORMATION
public static final PowerUnfoldTransformation POWER_UNFOLD_TRANSFORMATION
-
-
Constructor Detail
-
PowerUnfoldTransformation
public PowerUnfoldTransformation(Indicator<Tensor> toExpandIndicator)
Creates transformation that expands all powers of products and powers and unwraps powers of indexed arguments into products (e.g. (A_m*A^m)**2 -> A_m*A^m*A_a*A^a).- Parameters:
toExpandIndicator- applies only to powers that match this indicator
-
PowerUnfoldTransformation
public PowerUnfoldTransformation(SimpleTensor[] vars)
Creates transformation that expands all powers of products and powers with respect to specified variables and unwraps powers of indexed arguments into products (e.g. (A_m*A^m)**2 -> A_m*A^m*A_a*A^a).- Parameters:
vars- patterns
-
-
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