DenseBlockLDRB (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 Modifier and Type Field Description static intMAX_ALLOC
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intblockSize()Get the number of rows per block, except last one.
intblockSize(int bix)Get the number of rows of the given block.
longcountNonZeros()Compute the number of non-zero values, which potentially makes a full pass over the underlying blocks.
intcountNonZeros(int r)Compute the number of non-zero values for the given row, which potentially makes a full pass over the underlying row.
longcountNonZeros(int rl, int ru, int cl, int cu)Compute the number of non-zero values, which potentially makes a full pass over the underlying blocks in the row range.
intindex(int r)Get the block index for a given row.
booleanisContiguous(int rl, int ru)Indicates if the dense block has a single underlying block for the given row range.
intpos(int r)Get the position for a given row within its associated block.
intpos(int[] ix)Get the position for a given cell within the associated block.
intpos(int r, int c)Get the position for a given row and column within the associated block.
voidreset(int rlen, int[] odims, double v)Resets the dense block by setting the given value.
voidresetNoFill(int rlen, int[] odims)DenseBlockset(double v)Set the given value for the entire dense block (fill).
DenseBlockset(int r, double[] v)Copy the given vector into the given row.
DenseBlockset(int rl, int ru, int cl, int cu, double v)Set the given value for an entire index range of the dense block (fill).
DenseBlockset(DenseBlock db)Copy the given dense block.
intsize(int bix)Get the length of the given block.
-
Methods inherited from class org.apache.sysds.runtime.data.DenseBlock
capacity, contains, contains, contains, equals, equals, estimateMemory, fill, fillBlock, fillRow, get, get, getCumODims, getDim, getLong, getNextIndexes, getString, incr, incr, isContiguous, isNumeric, isNumeric, numBlocks, numCols, numDims, numRows, reset, reset, reset, reset, reset, reset, resetNoFill, set, set, set, set, set, set, set, set, setDims, size, toString, values, valuesAt
-
-