public class SparseDoubleRow extends SparseDoubleColumnMap implements DoubleRow
DoubleRow assumes a sparse set of columns,
ie. column IDs can be any int value. In general, this class is less CPU and
memory efficient than DenseDoubleRow.| Constructor and Description |
|---|
SparseDoubleRow()
Construct a new object, this object initially contains no columns (ie.
|
SparseDoubleRow(java.nio.ByteBuffer buffer)
Construct an object by de-serializing from a
ByteBuffer object. |
SparseDoubleRow(SparseDoubleRow other)
Copy constructor, constructs a new, deep copy of the argument.
|
| Modifier and Type | Method and Description |
|---|---|
SparseDoubleRow |
getCopy()
Returns a deep copy of this row.
|
void |
inc(RowUpdate rowUpdate)
Increment this row using a
RowUpdate object. |
clear, contains, get, inc, iterator, map, serialize, set, sizeincAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SparseDoubleRow()
public SparseDoubleRow(SparseDoubleRow other)
other - object to construct a deep copy of.public SparseDoubleRow(java.nio.ByteBuffer buffer)
ByteBuffer object.buffer - the ByteBuffer containing the serialized data.public SparseDoubleRow getCopy()