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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dimsKnown()
boolean
dimsKnown(boolean includeNnz)
boolean
equalDims(Object anObject)
boolean
equals(Object anObject)
long
getCols()
long
getDim(int i)
int[]
getIntDims()
long
getLength()
long[]
getLongDims()
long
getNonZeros()
long
getNumBlocks()
long
getNumBlocks(int i)
int
getNumDims()
long
getRows()
int
hashCode()
boolean
nnzKnown()
DataCharacteristics
set(long[] dims, int blocksize)
DataCharacteristics
set(long[] dims, int blocksize, long nnz)
DataCharacteristics
set(DataCharacteristics that)
DataCharacteristics
setDim(int i, long dim)
DataCharacteristics
setDims(long[] dims)
DataCharacteristics
setNonZeros(long nnz)
String
toString()
-
Methods inherited from class org.apache.sysds.runtime.meta.DataCharacteristics
aggregateBinary, aggregateUnary, colsKnown, getBlocksize, getDims, getNonZerosBound, getNumColBlocks, getNumRowBlocks, getSparsity, isNoEmptyBlocks, isUltraSparse, mightHaveEmptyBlocks, reorg, rowsKnown, set, set, setBlocksize, setCols, setDimension, setNoEmptyBlocks, setNonZerosBound, setRows
-
-
-
-
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)
- Overrides:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(long[] dims, int blocksize, long nnz)
- Overrides:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(DataCharacteristics that)
- Overrides:
set
in classDataCharacteristics
-
setNonZeros
public DataCharacteristics setNonZeros(long nnz)
- Overrides:
setNonZeros
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown()
- Overrides:
dimsKnown
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown(boolean includeNnz)
- Overrides:
dimsKnown
in classDataCharacteristics
-
nnzKnown
public boolean nnzKnown()
- Overrides:
nnzKnown
in classDataCharacteristics
-
getNumDims
public int getNumDims()
- Overrides:
getNumDims
in classDataCharacteristics
-
getDim
public long getDim(int i)
- Overrides:
getDim
in classDataCharacteristics
-
getLongDims
public long[] getLongDims()
- Overrides:
getLongDims
in classDataCharacteristics
-
getIntDims
public int[] getIntDims()
- Overrides:
getIntDims
in classDataCharacteristics
-
setDim
public DataCharacteristics setDim(int i, long dim)
- Overrides:
setDim
in classDataCharacteristics
-
setDims
public DataCharacteristics setDims(long[] dims)
- Overrides:
setDims
in classDataCharacteristics
-
getLength
public long getLength()
- Overrides:
getLength
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks()
- Overrides:
getNumBlocks
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks(int i)
- Overrides:
getNumBlocks
in classDataCharacteristics
-
getNonZeros
public long getNonZeros()
- Overrides:
getNonZeros
in classDataCharacteristics
-
getRows
public long getRows()
- Overrides:
getRows
in classDataCharacteristics
-
getCols
public long getCols()
- Overrides:
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
-
-