public final class DenseDoubleRow extends DenseDoubleColumnMap implements DoubleRow
DoubleRow assumes a dense set of columns, ie.
they are contiguous values from 0 to capacity - 1. In general, this class is
more CPU and memory efficient than SparseDoubleRow.| Constructor and Description |
|---|
DenseDoubleRow(java.nio.ByteBuffer buffer)
Construct a row by de-serializing from a
ByteBuffer object. |
DenseDoubleRow(DenseDoubleRow other)
Copy constructor, constructs a new, deep copy of the argument.
|
DenseDoubleRow(int capacity)
Construct a row by specifying a capacity.
|
| Modifier and Type | Method and Description |
|---|---|
DenseDoubleRow |
getCopy()
Returns a deep copy of this row.
|
void |
inc(RowUpdate rowUpdate)
Increment this row using a
RowUpdate object. |
array, capacity, clear, contains, get, inc, iterator, serialize, setincAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DenseDoubleRow(int capacity)
capacity - capacity of the row.public DenseDoubleRow(DenseDoubleRow other)
other - row to construct a deep copy of.public DenseDoubleRow(java.nio.ByteBuffer buffer)
ByteBuffer object.buffer - the ByteBuffer containing the serialized data.public DenseDoubleRow getCopy()