Documentation of 'cc.redberry.core.transformations.collect.CollectTransformation' Java class
CollectTransformation
cc.redberry.core.transformations.collect

Class 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
    • 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
      Tensor transform(Tensor t)
      Transforms specified tensor and returns the result.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 fields
        transformations - 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: Transformation
        Transforms specified tensor and returns the result.
        Specified by:
        transform in interface Transformation
        Parameters:
        t - tensor
        Returns:
        transformed tensor

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.