public static class Storage.SparseVector extends water.Iced implements Storage.Vector
| Modifier and Type | Class and Description |
|---|---|
class |
Storage.SparseVector.Iterator
Iterator over a sparse vector
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
double val) |
Storage.SparseVector.Iterator |
begin() |
Storage.SparseVector.Iterator |
end() |
double |
get(int i)
Slow path access to i-th element
|
int |
nnz() |
double[] |
raw() |
void |
set(int i,
double val) |
int |
size() |
water.fvec.Frame |
toFrame(water.Key key) |
public int size()
size in interface Storage.Vectorpublic int nnz()
public double get(int i)
get in interface Storage.Vectori - element indexpublic void set(int i,
double val)
set in interface Storage.Vectorpublic void add(int i,
double val)
add in interface Storage.Vectorpublic double[] raw()
raw in interface Storage.Vectorpublic Storage.SparseVector.Iterator begin()
public Storage.SparseVector.Iterator end()
public water.fvec.Frame toFrame(water.Key key)
toFrame in interface Storage.Vector