public final class ProductContent extends Object
| Modifier and Type | Field and Description |
|---|---|
static ProductContent |
EMPTY_INSTANCE
Singleton for empty instance.
|
| Modifier and Type | Method and Description |
|---|---|
Tensor |
get(int i)
Returns i-th element of indexed data in this product.
|
Tensor[] |
getDataCopy()
Copy of indexed data array
|
Tensor |
getNonScalar()
Returns non-scalar connected component of product.
|
Tensor[] |
getRange(int from,
int to)
Returns a range of indexed data specified by
from and to. |
Tensor[] |
getScalars()
Return scalar subproducts of this product.
|
short |
getStretchId(int i) |
short[] |
getStretchIds() |
short |
getStretchIndexByHash(int hashCode) |
StructureOfContractions |
getStructureOfContractions()
Returns structure of product contractions.
|
StructureOfContractionsHashed |
getStructureOfContractionsHashed()
Returns hashed structure of product contractions.
|
int |
size()
Returns size of indexed data.
|
public static final ProductContent EMPTY_INSTANCE
public StructureOfContractionsHashed getStructureOfContractionsHashed()
public StructureOfContractions getStructureOfContractions()
public Tensor getNonScalar()
public Tensor[] getScalars()
public short[] getStretchIds()
public short getStretchId(int i)
i - positionpublic Tensor get(int i)
i - positionpublic int size()
public Tensor[] getRange(int from, int to)
from and to.from - from position (inclusive)to - to position (exclusive)public Tensor[] getDataCopy()
public short getStretchIndexByHash(int hashCode)
hashCode - hashCodeCopyright © 2014. All Rights Reserved.