Documentation of 'cc.redberry.core.transformations.expand.ExpandUtils' Java class
ExpandUtils
cc.redberry.core.transformations.expand

Class ExpandUtils



  • public final class ExpandUtils
    extends java.lang.Object
    Utility static methods.
    Since:
    1.0
    • Field Detail

      • expandIndexlessSubproduct

        public static final Transformation expandIndexlessSubproduct
    • Constructor Detail

      • ExpandUtils

        public ExpandUtils()
    • Method Detail

      • expandPairOfSums

        public static Tensor expandPairOfSums(Sum s1,
                                              Sum s2,
                                              Tensor[] factors,
                                              Transformation[] transformations)
        Expands out the product of two sums.
        Parameters:
        s1 - first sum
        s2 - second sum
        transformations - additional transformations to be consequently applied on each term in the resulting expression.
        factors - if specified, then each resulting term will be multiplied on this factor
        Returns:
        the resulting expanded tensor
      • expandPairOfSums

        public static Tensor expandPairOfSums(Sum s1,
                                              Sum s2,
                                              Transformation[] transformations)
        Expands out the product of two sums.
        Parameters:
        s1 - first sum
        s2 - second sum
        transformations - additional transformations to be consequently applied on each term in the resulting expression.
        Returns:
        the resulting expanded tensor
      • expandProductOfSums1

        public static Tensor expandProductOfSums1(java.lang.Iterable<Tensor> tensor,
                                                  Transformation[] transformations,
                                                  boolean indexed)
      • multiplySumElementsOnFactorAndExpand

        public static Tensor multiplySumElementsOnFactorAndExpand(Sum sum,
                                                                  Tensor factor,
                                                                  Transformation[] transformations)
      • isExpandablePower

        public static boolean isExpandablePower(Tensor t)
      • sumContainsIndexed

        public static boolean sumContainsIndexed(Tensor t)
      • expandSymbolicPower

        public static Tensor expandSymbolicPower(Sum argument,
                                                 int power,
                                                 Transformation[] transformations)
      • expandPower

        public static Tensor expandPower(Sum argument,
                                         int power,
                                         int[] forbiddenIndices,
                                         Transformation[] transformations)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.