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, setBlocksize, 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)
- Specified by:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(long nr, long nc, int blen, long nnz)
- Specified by:
set
in classDataCharacteristics
-
set
public DataCharacteristics set(DataCharacteristics that)
- Specified by:
set
in classDataCharacteristics
-
getRows
public long getRows()
- Specified by:
getRows
in classDataCharacteristics
-
setRows
public DataCharacteristics setRows(long rlen)
- Specified by:
setRows
in classDataCharacteristics
-
getCols
public long getCols()
- Specified by:
getCols
in classDataCharacteristics
-
setCols
public DataCharacteristics setCols(long clen)
- Specified by:
setCols
in classDataCharacteristics
-
getLength
public long getLength()
- Specified by:
getLength
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
-
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
-
getNumDims
public int getNumDims()
- Specified by:
getNumDims
in classDataCharacteristics
-
setNonZeros
public DataCharacteristics setNonZeros(long nnz)
- Specified by:
setNonZeros
in classDataCharacteristics
-
getNonZeros
public long getNonZeros()
- Specified by:
getNonZeros
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
-
dimsKnown
public boolean dimsKnown()
- Specified by:
dimsKnown
in classDataCharacteristics
-
dimsKnown
public boolean dimsKnown(boolean includeNnz)
- Specified by:
dimsKnown
in classDataCharacteristics
-
rowsKnown
public boolean rowsKnown()
- Specified by:
rowsKnown
in classDataCharacteristics
-
colsKnown
public boolean colsKnown()
- Specified by:
colsKnown
in classDataCharacteristics
-
nnzKnown
public boolean nnzKnown()
- Specified by:
nnzKnown
in classDataCharacteristics
-
isUltraSparse
public boolean isUltraSparse()
- Specified by:
isUltraSparse
in classDataCharacteristics
-
mightHaveEmptyBlocks
public boolean mightHaveEmptyBlocks()
- Specified by:
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
-
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
-
setDim
public DataCharacteristics setDim(int i, long dim)
- Specified by:
setDim
in classDataCharacteristics
-
setDims
public DataCharacteristics setDims(long[] dims)
- Specified by:
setDims
in classDataCharacteristics
-
getNumBlocks
public long getNumBlocks(int i)
- Specified by:
getNumBlocks
in classDataCharacteristics
-
-