public class SparseVector extends Vector
Modifier and Type | Class and Description |
---|---|
class |
SparseVector.SparseVectorIterator |
Constructor and Description |
---|
SparseVector() |
SparseVector(Map<Integer,Double> map) |
Modifier and Type | Method and Description |
---|---|
SparseVector |
copy() |
Double |
get(int index) |
Set<Integer> |
getIdxs() |
Iterator<Pair<Integer,Double>> |
iterator() |
void |
remove(int index) |
void |
set(int index,
double val) |
int |
size() |
dotProduct, norm
public SparseVector copy()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.