public abstract class DenseBlockDRB extends DenseBlock
DenseBlock.Type| Modifier and Type | Method and Description | 
|---|---|
| int | blockSize()Get the number of rows per block, except last one. | 
| int | blockSize(int bix)Get the number of rows of the given block. | 
| long | countNonZeros()Compute the number of non-zero values, which potentially 
 makes a full pass over the underlying blocks. | 
| int | countNonZeros(int r)Compute the number of non-zero values for the given row,
 which potentially makes a full pass over the underlying row. | 
| long | countNonZeros(int rl,
             int ru,
             int ol,
             int ou)Compute the number of non-zero values, which potentially 
 makes a full pass over the underlying blocks in the row range. | 
| boolean | isContiguous()Indicates if the dense block has a single
 underlying block, i.e., if numBlocks==1. | 
| boolean | isContiguous(int rl,
            int ru)Indicates if the dense block has a single
 underlying block for the given row range. | 
| int | numBlocks()Get the number of allocated blocks. | 
| int | pos(int r)Get the position for a given row within
 its associated block. | 
| int | pos(int[] ix)Get the position for a given cell
 within the associated block. | 
| int | pos(int r,
   int c)Get the position for a given row and column
 within the associated block. | 
| void | reset(int rlen,
     int[] odims,
     double v)Resets the dense block by setting the given value. | 
| DenseBlock | set(double v)Set the given value for the entire dense block (fill). | 
| DenseBlock | set(int rl,
   int ru,
   int cl,
   int cu,
   double v)Set the given value for an entire index range of the 
 dense block (fill). | 
| int | size(int bix)Get the length of the given block. | 
capacity, get, get, getCumODims, getDim, getLong, getNextIndexes, getString, incr, incr, index, isNumeric, numDims, numRows, reset, reset, reset, reset, reset, reset, set, set, set, set, set, set, set, set, set, set, size, toString, values, valuesAtpublic void reset(int rlen,
                  int[] odims,
                  double v)
DenseBlockreset in class DenseBlockrlen - number of rowsodims - other dimensionsv - valuepublic int numBlocks()
DenseBlocknumBlocks in class DenseBlockpublic int blockSize()
DenseBlockblockSize in class DenseBlockpublic int blockSize(int bix)
DenseBlockblockSize in class DenseBlockbix - block indexpublic boolean isContiguous()
DenseBlockisContiguous in class DenseBlockpublic boolean isContiguous(int rl,
                            int ru)
DenseBlockisContiguous in class DenseBlockrl - row lower indexru - row upper index (inclusive)public int size(int bix)
DenseBlocksize in class DenseBlockbix - block indexpublic int pos(int r)
DenseBlockpos in class DenseBlockr - row indexpublic int pos(int r,
               int c)
DenseBlockpos in class DenseBlockr - row indexc - column indexpublic int pos(int[] ix)
DenseBlockpos in class DenseBlockix - cell indexespublic long countNonZeros()
DenseBlockcountNonZeros in class DenseBlockpublic int countNonZeros(int r)
DenseBlockcountNonZeros in class DenseBlockr - row indexpublic long countNonZeros(int rl,
                          int ru,
                          int ol,
                          int ou)
DenseBlockcountNonZeros in class DenseBlockrl - row lower indexru - row upper index (exclusive)ol - column lower indexou - column upper index (exclusive)public DenseBlock set(int rl, int ru, int cl, int cu, double v)
DenseBlockset in class DenseBlockrl - row lower indexru - row upper index (exclusive)cl - column lower indexcu - column upper index (exclusive)v - valuepublic DenseBlock set(double v)
DenseBlockset in class DenseBlockv - valueCopyright © 2020 The Apache Software Foundation. All rights reserved.