DenseBlockFP32 (Apache SystemDS 3.4.0-SNAPSHOT API)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.runtime.data.DenseBlock
DenseBlock.Type
-
-
Constructor Summary
Constructors Constructor Description DenseBlockFP32(int[] dims)DenseBlockFP32(int[] dims, float[] data)
-
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.
float[]getData()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.
intindex(int r)Get the block index for a given row.
booleanisNumeric()Indicates if the dense block is numeric.
booleanisNumeric(Types.ValueType vt)Indicates if the dense block is a specific numeric value type.
voidreset(int rlen, int[] odims, double v)Resets the dense block by setting the given value.
voidresetNoFill(int rlen, int[] odims)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, double[] v)Copy the given vector into the given row.
DenseBlockset(int r, int c, double v)Set the given value for a given row and column.
DenseBlockset(DenseBlock db)Copy the given dense block.
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.DenseBlockDRB
blockSize, blockSize, countNonZeros, countNonZeros, countNonZeros, isContiguous, isContiguous, numBlocks, pos, pos, pos, set, set, size
-
Methods inherited from class org.apache.sysds.runtime.data.DenseBlock
contains, contains, contains, equals, equals, estimateMemory, fill, getCumODims, getDim, getNextIndexes, numCols, numDims, numRows, reset, reset, reset, reset, reset, reset, resetNoFill, set, set, set, set, setDims, size, toString
-
-