public class DenseFloatRowUpdate extends DenseFloatColumnMap implements FloatRowUpdate
FloatRowUpdate 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
SparseFloatRowUpdate.| Constructor and Description |
|---|
DenseFloatRowUpdate(java.nio.ByteBuffer buffer)
Construct a row update by de-serializing from a
ByteBuffer
object. |
DenseFloatRowUpdate(DenseFloatRowUpdate other)
Copy constructor, constructs a new, deep copy of the argument.
|
DenseFloatRowUpdate(int capacity)
Construct a row update by specifying a capacity.
|
| Modifier and Type | Method and Description |
|---|---|
DenseFloatRowUpdate |
getCopy()
Returns a deep copy of this row update.
|
void |
inc(RowUpdate rowUpdate)
Increment this row update using a
RowUpdate object. |
array, capacity, clear, contains, get, inc, iterator, serialize, setincAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DenseFloatRowUpdate(int capacity)
capacity - capacity of the row update.public DenseFloatRowUpdate(DenseFloatRowUpdate other)
other - row update to construct a deep copy of.public DenseFloatRowUpdate(java.nio.ByteBuffer buffer)
ByteBuffer
object.buffer - the ByteBuffer containing the serialized data.public DenseFloatRowUpdate getCopy()