Documentation of 'cc.redberry.core.transformations.reverse.ReverseTransformation' Java class
ReverseTransformation
cc.redberry.core.transformations.reverse

Class ReverseTransformation

  • All Implemented Interfaces:
    Transformation


    public final class ReverseTransformation
    extends java.lang.Object
    implements Transformation
    Reverses the order of matrices in expression.
    • 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: Transformation
        Transforms specified tensor and returns the result.
        Specified by:
        transform in interface Transformation
        Parameters:
        t - tensor
        Returns:
        transformed tensor
      • assertType

        public static void assertType(IndexType type)
      • inverseOrderOfMatrices

        public static Tensor inverseOrderOfMatrices(Tensor t,
                                                    IndexType type)
        Reverses the order of matrices of specified type in expression.
        Parameters:
        t - tensor
        type - matrix type
        Returns:
        reversed tensor

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.