public class DenseBlockInt32 extends DenseBlockDRB
DenseBlock.Type| Constructor and Description | 
|---|
DenseBlockInt32(int[] dims)  | 
DenseBlockInt32(int[] dims,
               int[] data)  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
capacity()
Get the total length of allocated blocks. 
 | 
double | 
get(int[] ix)
Get the value of a given cell 
 | 
double | 
get(int r,
   int c)
Get the value for a given row and column. 
 | 
int[] | 
getData()  | 
long | 
getLong(int[] ix)
Get the value of a given cell as long 
 | 
String | 
getString(int[] ix)
Get the value of a given cell as a String 
 | 
void | 
incr(int r,
    int c)
Increments the given value for a given row and column. 
 | 
void | 
incr(int r,
    int c,
    double delta)
Increments the given value for a given row and column
 by delta. 
 | 
int | 
index(int r)
Get the block index for a given row. 
 | 
boolean | 
isNumeric()
Indicates if the dense block is numeric. 
 | 
DenseBlock | 
set(DenseBlock db)
Copy the given dense block. 
 | 
DenseBlock | 
set(int[] ix,
   double v)
Set the specified cell to the given value. 
 | 
DenseBlock | 
set(int[] ix,
   long v)
Set the specified cell to the given value. 
 | 
DenseBlock | 
set(int[] ix,
   String v)
Set the specified cell to the given value. 
 | 
DenseBlock | 
set(int r,
   double[] v)
Copy the given vector into the given row. 
 | 
DenseBlock | 
set(int r,
   int c,
   double v)
Set the given value for a given row and column. 
 | 
double[] | 
values(int r)
Get the allocated block for the given row. 
 | 
double[] | 
valuesAt(int bix)
Get an allocated block. 
 | 
blockSize, blockSize, countNonZeros, countNonZeros, countNonZeros, isContiguous, isContiguous, numBlocks, pos, pos, pos, reset, set, set, sizeestimateMemory, getCumODims, getDim, getNextIndexes, numDims, numRows, reset, reset, reset, reset, reset, reset, set, set, set, set, setDims, size, toStringpublic DenseBlockInt32(int[] dims)
public DenseBlockInt32(int[] dims,
                       int[] data)
public int[] getData()
public boolean isNumeric()
DenseBlockisNumeric in class DenseBlockpublic long capacity()
DenseBlockcapacity in class DenseBlockpublic double[] values(int r)
DenseBlockvalues in class DenseBlockr - row indexpublic double[] valuesAt(int bix)
DenseBlockvaluesAt in class DenseBlockbix - block indexpublic int index(int r)
DenseBlockindex in class DenseBlockr - row indexpublic void incr(int r,
                 int c)
DenseBlockincr in class DenseBlockr - row indexc - column indexpublic void incr(int r,
                 int c,
                 double delta)
DenseBlockincr in class DenseBlockr - row indexc - column indexdelta - increment valuepublic DenseBlock set(int r, int c, double v)
DenseBlockset in class DenseBlockr - row indexc - column indexv - valuepublic DenseBlock set(DenseBlock db)
DenseBlockset in class DenseBlockdb - dense blockpublic DenseBlock set(int r, double[] v)
DenseBlockset in class DenseBlockr - row indexv - value vectorpublic DenseBlock set(int[] ix, double v)
DenseBlockset in class DenseBlockix - cell indexesv - valuepublic DenseBlock set(int[] ix, long v)
DenseBlockset in class DenseBlockix - cell indexesv - valuepublic DenseBlock set(int[] ix, String v)
DenseBlockset in class DenseBlockix - cell indexesv - value as Stringpublic double get(int r,
                  int c)
DenseBlockget in class DenseBlockr - row indexc - column indexpublic double get(int[] ix)
DenseBlockget in class DenseBlockix - cell indexespublic String getString(int[] ix)
DenseBlockgetString in class DenseBlockix - cell indexespublic long getLong(int[] ix)
DenseBlockgetLong in class DenseBlockix - cell indexesCopyright © 2021 The Apache Software Foundation. All rights reserved.