Package org.apache.sysds.runtime.meta
Class TensorCharacteristics
- java.lang.Object
-
- org.apache.sysds.runtime.meta.DataCharacteristics
-
- org.apache.sysds.runtime.meta.TensorCharacteristics
-
- All Implemented Interfaces:
Serializable
public class TensorCharacteristics extends DataCharacteristics
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int[]
DEFAULT_BLOCK_SIZE
-
Constructor Summary
Constructors Constructor Description TensorCharacteristics()
TensorCharacteristics(long[] dims, int blocksize)
TensorCharacteristics(long[] dims, int blocksize, long nnz)
TensorCharacteristics(long[] dims, long nnz)
TensorCharacteristics(DataCharacteristics that)
-
Method Summary
-
Methods inherited from class org.apache.sysds.runtime.meta.DataCharacteristics
aggregateBinary, aggregateUnary, getBlocksize, getDims, isNoEmptyBlocks, reorg, setBlocksize, setNoEmptyBlocks
-
-
-
-
Constructor Detail
-
TensorCharacteristics
public TensorCharacteristics()
-
TensorCharacteristics
public TensorCharacteristics(long[] dims, long nnz)
-
TensorCharacteristics
public TensorCharacteristics(long[] dims, int blocksize)
-
TensorCharacteristics
public TensorCharacteristics(long[] dims, int blocksize, long nnz)
-
TensorCharacteristics
public TensorCharacteristics(DataCharacteristics that)
-
-
Method Detail
-
set
public DataCharacteristics set(long[] dims, int blocksize)
- Specified by:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(long[] dims, int blocksize, long nnz)
- Specified by:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(DataCharacteristics that)
- Specified by:
set
in classDataCharacteristics
-
setNonZeros
public DataCharacteristics setNonZeros(long nnz)
- Specified by:
setNonZeros
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown()
- Specified by:
dimsKnown
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown(boolean includeNnz)
- Specified by:
dimsKnown
in classDataCharacteristics
-
nnzKnown
public boolean nnzKnown()
- Specified by:
nnzKnown
in classDataCharacteristics
-
getNumDims
public int getNumDims()
- Specified by:
getNumDims
in classDataCharacteristics
-
getDim
public long getDim(int i)
- Specified by:
getDim
in classDataCharacteristics
-
getLongDims
public long[] getLongDims()
- Specified by:
getLongDims
in classDataCharacteristics
-
getIntDims
public int[] getIntDims()
- Specified by:
getIntDims
in classDataCharacteristics
-
setDim
public DataCharacteristics setDim(int i, long dim)
- Specified by:
setDim
in classDataCharacteristics
-
setDims
public DataCharacteristics setDims(long[] dims)
- Specified by:
setDims
in classDataCharacteristics
-
getLength
public long getLength()
- Specified by:
getLength
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks()
- Overrides:
getNumBlocks
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks(int i)
- Specified by:
getNumBlocks
in classDataCharacteristics
-
getNonZeros
public long getNonZeros()
- Specified by:
getNonZeros
in classDataCharacteristics
-
getRows
public long getRows()
- Specified by:
getRows
in classDataCharacteristics
-
getCols
public long getCols()
- Specified by:
getCols
in classDataCharacteristics
-
equalDims
public boolean equalDims(Object anObject)
- Specified by:
equalDims
in classDataCharacteristics
-
equals
public boolean equals(Object anObject)
- Specified by:
equals
in classDataCharacteristics
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classDataCharacteristics
-
set
public DataCharacteristics set(long nr, long nc, int blen)
- Specified by:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(long nr, long nc, int blen, long nnz)
- Specified by:
set
in classDataCharacteristics
-
setRows
public DataCharacteristics setRows(long rlen)
- Specified by:
setRows
in classDataCharacteristics
-
setCols
public DataCharacteristics setCols(long clen)
- Specified by:
setCols
in classDataCharacteristics
-
getNumRowBlocks
public long getNumRowBlocks()
- Specified by:
getNumRowBlocks
in classDataCharacteristics
-
getNumColBlocks
public long getNumColBlocks()
- Specified by:
getNumColBlocks
in classDataCharacteristics
-
setDimension
public DataCharacteristics setDimension(long nr, long nc)
- Specified by:
setDimension
in classDataCharacteristics
-
setNonZerosBound
public DataCharacteristics setNonZerosBound(long nnz)
- Specified by:
setNonZerosBound
in classDataCharacteristics
-
getNonZerosBound
public long getNonZerosBound()
- Specified by:
getNonZerosBound
in classDataCharacteristics
-
getSparsity
public double getSparsity()
- Specified by:
getSparsity
in classDataCharacteristics
-
rowsKnown
public boolean rowsKnown()
- Specified by:
rowsKnown
in classDataCharacteristics
-
colsKnown
public boolean colsKnown()
- Specified by:
colsKnown
in classDataCharacteristics
-
isUltraSparse
public boolean isUltraSparse()
- Specified by:
isUltraSparse
in classDataCharacteristics
-
mightHaveEmptyBlocks
public boolean mightHaveEmptyBlocks()
- Specified by:
mightHaveEmptyBlocks
in classDataCharacteristics
-
-