Package org.apache.sysds.runtime.meta
Class MatrixCharacteristics
- java.lang.Object
-
- org.apache.sysds.runtime.meta.DataCharacteristics
-
- org.apache.sysds.runtime.meta.MatrixCharacteristics
-
- All Implemented Interfaces:
Serializable
public class MatrixCharacteristics extends DataCharacteristics
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixCharacteristics()
MatrixCharacteristics(long nr, long nc)
MatrixCharacteristics(long nr, long nc, int blen)
MatrixCharacteristics(long nr, long nc, int blen, long nnz)
MatrixCharacteristics(long nr, long nc, long nnz)
MatrixCharacteristics(DataCharacteristics that)
-
Method Summary
-
Methods inherited from class org.apache.sysds.runtime.meta.DataCharacteristics
aggregateBinary, aggregateUnary, getBlocksize, getDims, getNumBlocks, isNoEmptyBlocks, reorg, set, set, setBlocksize, setDim, setDims, setNoEmptyBlocks
-
-
-
-
Constructor Detail
-
MatrixCharacteristics
public MatrixCharacteristics()
-
MatrixCharacteristics
public MatrixCharacteristics(long nr, long nc)
-
MatrixCharacteristics
public MatrixCharacteristics(long nr, long nc, long nnz)
-
MatrixCharacteristics
public MatrixCharacteristics(long nr, long nc, int blen)
-
MatrixCharacteristics
public MatrixCharacteristics(long nr, long nc, int blen, long nnz)
-
MatrixCharacteristics
public MatrixCharacteristics(DataCharacteristics that)
-
-
Method Detail
-
set
public DataCharacteristics set(long nr, long nc, int blen)
- Overrides:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(long nr, long nc, int blen, long nnz)
- Overrides:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(DataCharacteristics that)
- Overrides:
set
in classDataCharacteristics
-
getRows
public long getRows()
- Overrides:
getRows
in classDataCharacteristics
-
setRows
public DataCharacteristics setRows(long rlen)
- Overrides:
setRows
in classDataCharacteristics
-
getCols
public long getCols()
- Overrides:
getCols
in classDataCharacteristics
-
setCols
public DataCharacteristics setCols(long clen)
- Overrides:
setCols
in classDataCharacteristics
-
getLength
public long getLength()
- Overrides:
getLength
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks()
- Overrides:
getNumBlocks
in classDataCharacteristics
-
getNumRowBlocks
public long getNumRowBlocks()
- Overrides:
getNumRowBlocks
in classDataCharacteristics
-
getNumColBlocks
public long getNumColBlocks()
- Overrides:
getNumColBlocks
in classDataCharacteristics
-
setDimension
public DataCharacteristics setDimension(long nr, long nc)
- Overrides:
setDimension
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
-
getNumDims
public int getNumDims()
- Overrides:
getNumDims
in classDataCharacteristics
-
setNonZeros
public DataCharacteristics setNonZeros(long nnz)
- Overrides:
setNonZeros
in classDataCharacteristics
-
getNonZeros
public long getNonZeros()
- Overrides:
getNonZeros
in classDataCharacteristics
-
setNonZerosBound
public DataCharacteristics setNonZerosBound(long nnz)
- Overrides:
setNonZerosBound
in classDataCharacteristics
-
getNonZerosBound
public long getNonZerosBound()
- Overrides:
getNonZerosBound
in classDataCharacteristics
-
getSparsity
public double getSparsity()
- Overrides:
getSparsity
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown()
- Overrides:
dimsKnown
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown(boolean includeNnz)
- Overrides:
dimsKnown
in classDataCharacteristics
-
rowsKnown
public boolean rowsKnown()
- Overrides:
rowsKnown
in classDataCharacteristics
-
colsKnown
public boolean colsKnown()
- Overrides:
colsKnown
in classDataCharacteristics
-
nnzKnown
public boolean nnzKnown()
- Overrides:
nnzKnown
in classDataCharacteristics
-
isUltraSparse
public boolean isUltraSparse()
- Overrides:
isUltraSparse
in classDataCharacteristics
-
mightHaveEmptyBlocks
public boolean mightHaveEmptyBlocks()
- Overrides:
mightHaveEmptyBlocks
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
-
-