cc.redberry.core.transformations.reverse
Class ReverseTransformation
- java.lang.Object
-
- cc.redberry.core.transformations.reverse.ReverseTransformation
-
- All Implemented Interfaces:
- Transformation
public final class ReverseTransformation extends java.lang.Object implements Transformation
Reverses the order of matrices in expression.
-
-
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 ReverseTransformation(IndexType type)Creates transformations that reverses order of matrices of specified type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static voidassertType(IndexType type)static TensorinverseOrderOfMatrices(Tensor t, IndexType type)Reverses the order of matrices of specified type in expression.Tensortransform(Tensor t)Transforms specified tensor and returns the result.
-
-
-
Constructor Detail
-
ReverseTransformation
public ReverseTransformation(IndexType type)
Creates transformations that reverses order of matrices of specified type.- Parameters:
type- index type- Throws:
java.lang.IllegalArgumentException- if type is not a matrix type (i.e. it has metric)
-
-
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
-
assertType
public static void assertType(IndexType type)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG