Documentation of 'cc.redberry.core.tensor.ProductContent' Java class
ProductContent
cc.redberry.core.tensor

Class ProductContent

  • All Implemented Interfaces:
    java.lang.Iterable<Tensor>


    public final class ProductContent
    extends java.lang.Object
    implements java.lang.Iterable<Tensor>
    This class is a container of information about graph structure of product.
    Since:
    1.0
    • Field Detail

      • EMPTY_INSTANCE

        public static final ProductContent EMPTY_INSTANCE
        Singleton for empty instance.
    • Method Detail

      • getStructureOfContractionsHashed

        public StructureOfContractionsHashed getStructureOfContractionsHashed()
        Returns hashed structure of product contractions.
        Returns:
        hashed structure of product contractions
      • getStructureOfContractions

        public StructureOfContractions getStructureOfContractions()
        Returns structure of product contractions.
        Returns:
        structure of product contractions
      • getNonScalar

        public Tensor getNonScalar()
        Returns non-scalar connected component of product.
        Returns:
        non-scalar connected component of product
      • getScalars

        public Tensor[] getScalars()
        Return scalar subproducts of this product.
        Returns:
        an array of scalar subproducts of this product
      • getStretchIds

        public short[] getStretchIds()
        Returns:
        ids
      • getStretchId

        public short getStretchId(int i)
        Parameters:
        i - position
        Returns:
        id
      • get

        public Tensor get(int i)
        Returns i-th element of indexed data in this product.
        Parameters:
        i - position
        Returns:
        i-th element of indexed data in this product
      • size

        public int size()
        Returns size of indexed data.
        Returns:
        size of indexed data
      • getRange

        public Tensor[] getRange(int from,
                                 int to)
        Returns a range of indexed data specified by from and to.
        Parameters:
        from - from position (inclusive)
        to - to position (exclusive)
        Returns:
        range
      • getDataCopy

        public Tensor[] getDataCopy()
        Copy of indexed data array
        Returns:
        copy of indexed data array
      • iterator

        public java.util.Iterator<Tensor> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Tensor>
      • getStretchIndexByHash

        public short getStretchIndexByHash(int hashCode)
        Parameters:
        hashCode - hashCode
        Returns:
        id

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.