cc.redberry.core.transformations.fractions
Class TogetherTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.fractions.TogetherTransformation
-
- All Implemented Interfaces:
- Transformation
public final class TogetherTransformation extends java.lang.Object implements Transformation
Puts terms in a sum over a common denominator.- 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 TogetherTransformationTOGETHERstatic TogetherTransformationTOGETHER_FACTOR-
Fields inherited from interface cc.redberry.core.transformations.Transformation
INDENTITY
-
-
Constructor Summary
Constructors Constructor and Description TogetherTransformation()TogetherTransformation(Transformation factor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Tensortogether(Tensor t)Puts terms in a sum over a common denominator.static Tensortogether(Tensor t, boolean doFactor)Puts terms in a sum over a common denominator and cancels factors in the result if specified.static Tensortogether(Tensor t, Transformation factor)Puts terms in a sum over a common denominator and cancels factors in the result if specified.Tensortransform(Tensor t)Transforms specified tensor and returns the result.
-
-
-
Field Detail
-
TOGETHER
public static final TogetherTransformation TOGETHER
-
TOGETHER_FACTOR
public static final TogetherTransformation TOGETHER_FACTOR
-
-
Constructor Detail
-
TogetherTransformation
public TogetherTransformation(Transformation factor)
-
TogetherTransformation
public TogetherTransformation()
-
-
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
-
together
public static Tensor together(Tensor t)
Puts terms in a sum over a common denominator.- Parameters:
t- tensor- Returns:
- result
-
together
public static Tensor together(Tensor t, Transformation factor)
Puts terms in a sum over a common denominator and cancels factors in the result if specified.- Parameters:
t- tensorfactor- factor transformation- Returns:
- result
-
-
DataMelt 3.0 © DataMelt by jWork.ORG