| Package | Description |
|---|---|
| org.grouplens.lenskit.vectors |
Vectors (both sparse and dense) and their operations.
|
| Modifier and Type | Method and Description |
|---|---|
VectorEntry |
VectorEntry.clone() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<VectorEntry> |
SparseVector.fast()
Return an iterable view of this vector using a fast iterator.
|
Iterable<VectorEntry> |
SparseVector.fast(VectorEntry.State state)
Return an iterable view of this vector using a fast iterator.
|
static Iterable<org.apache.commons.lang3.tuple.Pair<VectorEntry,VectorEntry>> |
Vectors.fastIntersect(SparseVector v1,
SparseVector v2)
Iterate over the intersection of two vectors without the overhead of object creation.
|
static Iterable<org.apache.commons.lang3.tuple.Pair<VectorEntry,VectorEntry>> |
Vectors.fastIntersect(SparseVector v1,
SparseVector v2)
Iterate over the intersection of two vectors without the overhead of object creation.
|
Iterator<VectorEntry> |
SparseVector.fastIterator()
Fast iterator over all set entries (it can reuse entry objects).
|
Iterator<VectorEntry> |
SparseVector.fastIterator(VectorEntry.State state)
Fast iterator over entries (it can reuse entry objects).
|
static Iterable<org.apache.commons.lang3.tuple.ImmutablePair<VectorEntry,VectorEntry>> |
Vectors.intersect(SparseVector v1,
SparseVector v2)
Iterate over the intersection of two vectors - they keys they have in common.
|
static Iterable<org.apache.commons.lang3.tuple.ImmutablePair<VectorEntry,VectorEntry>> |
Vectors.intersect(SparseVector v1,
SparseVector v2)
Iterate over the intersection of two vectors - they keys they have in common.
|
Iterator<VectorEntry> |
SparseVector.iterator() |
| Modifier and Type | Method and Description |
|---|---|
double |
SparseVector.get(VectorEntry entry)
Get the value for the entry's key.
|
boolean |
SparseVector.isSet(VectorEntry entry)
Check whether an entry is set.
|
double |
MutableSparseVector.set(VectorEntry entry,
double value)
Set the value in the vector corresponding to a vector entry.
|
void |
MutableSparseVector.unset(VectorEntry entry)
Unset the value for a vector entry.
|
Copyright © 2013 GroupLens Research. All Rights Reserved.