public class DenseBlockString extends DenseBlockDRB
DenseBlock.Type| Constructor and Description | 
|---|
| DenseBlockString(int[] dims) | 
| DenseBlockString(int[] dims,
                String[] 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. | 
| String[] | 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. | 
| int | pos(int r)Get the position for a given row within
 its associated block. | 
| int | pos(int r,
   int c)Get the position for a given row and column
 within the associated block. | 
| 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. | 
| DenseBlock | set(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. | 
blockSize, blockSize, countNonZeros, countNonZeros, countNonZeros, isContiguous, isContiguous, numBlocks, pos, reset, set, set, sizepublic DenseBlockString(int[] dims)
public DenseBlockString(int[] dims,
                        String[] data)
public String[] 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 int pos(int r)
DenseBlockpos in class DenseBlockDRBr - row indexpublic int pos(int r,
               int c)
DenseBlockpos in class DenseBlockDRBr - row indexc - column 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(String s)
DenseBlockset in class DenseBlocks - stringpublic 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 double get(int r,
                  int c)
DenseBlockget in class DenseBlockr - row indexc - column indexpublic double get(int[] ix)
DenseBlockget in class DenseBlockix - cell indexespublic DenseBlock set(int[] ix, String v)
DenseBlockset in class DenseBlockix - cell indexesv - value as Stringpublic String getString(int[] ix)
DenseBlockgetString in class DenseBlockix - cell indexespublic long getLong(int[] ix)
DenseBlockgetLong in class DenseBlockix - cell indexesCopyright © 2020 The Apache Software Foundation. All rights reserved.