DenseBlockLBool (Apache SystemDS 3.4.0-SNAPSHOT API)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.data.DenseBlock
DenseBlock.Type
-
-
Field Summary
-
Fields inherited from class org.apache.sysds.runtime.data.DenseBlockLDRB
MAX_ALLOC
-
-
Constructor Summary
Constructors Constructor Description DenseBlockLBool(int[] dims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcapacity()Get the total length of allocated blocks.
voidfillBlock(int bix, int fromIndex, int toIndex, double v)Fill a certain range of elements of a block.
voidfillRow(int r, double v)Fill the DenseBlock row index with the value specified.
doubleget(int[] ix)Get the value of a given cell
doubleget(int r, int c)Get the value for a given row and column.
longgetLong(int[] ix)Get the value of a given cell as long
StringgetString(int[] ix)Get the value of a given cell as a String
voidincr(int r, int c)Increments the given value for a given row and column.
voidincr(int r, int c, double delta)Increments the given value for a given row and column by delta.
booleanisContiguous()Indicates if the dense block has a single underlying block, i.e., if numBlocks==1.
booleanisNumeric()Indicates if the dense block is numeric.
booleanisNumeric(Types.ValueType vt)Indicates if the dense block is a specific numeric value type.
intnumBlocks()Get the number of allocated blocks.
voidreset(int rlen, int[] odims, double v)Resets the dense block by setting the given value.
DenseBlockset(int[] ix, double v)Set the specified cell to the given value.
DenseBlockset(int[] ix, long v)Set the specified cell to the given value.
DenseBlockset(int[] ix, String v)Set the specified cell to the given value.
DenseBlockset(int r, int c, double v)Set the given value for a given row and column.
DenseBlockset(String s)Set the given string for the entire dense block (fill).
double[]values(int r)Get the allocated block for the given row.
double[]valuesAt(int bix)Get an allocated block.
-
Methods inherited from class org.apache.sysds.runtime.data.DenseBlockLDRB
blockSize, blockSize, countNonZeros, countNonZeros, countNonZeros, index, isContiguous, pos, pos, pos, resetNoFill, set, set, set, set, size
-
-