public class RandomAccessSparseVector extends AbstractVector
AbstractVector.LocalElementVector.ElementlengthSquared| Constructor and Description |
|---|
RandomAccessSparseVector() |
RandomAccessSparseVector(int cardinality) |
RandomAccessSparseVector(int cardinality,
int initialCapacity) |
RandomAccessSparseVector(RandomAccessSparseVector other,
boolean shallowCopy) |
RandomAccessSparseVector(Vector other) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
assign(Vector other) |
RandomAccessSparseVector |
clone() |
int |
getNumNondefaultElements() |
double |
getQuick(int index) |
boolean |
isDense() |
boolean |
isSequentialAccess() |
Iterator<Vector.Element> |
iterateNonZero() |
Iterator<Vector.Element> |
iterator() |
RandomAccessSparseVector |
like() |
void |
setQuick(int index,
double value) |
String |
toString() |
aggregate, aggregate, asFormatString, assign, assign, assign, assign, assign, cross, divide, dot, dotSelf, equals, get, getDistanceSquared, getElement, getLengthSquared, hashCode, logNormalize, logNormalize, logNormalize, maxValue, maxValueIndex, minus, minValue, minValueIndex, norm, normalize, normalize, plus, plus, set, size, times, times, toString, viewPart, zSumfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic RandomAccessSparseVector()
public RandomAccessSparseVector(int cardinality)
public RandomAccessSparseVector(int cardinality,
int initialCapacity)
public RandomAccessSparseVector(Vector other)
public RandomAccessSparseVector(RandomAccessSparseVector other, boolean shallowCopy)
public RandomAccessSparseVector clone()
clone in interface Vectorclone in class AbstractVectorpublic String toString()
toString in class AbstractVectorpublic Vector assign(Vector other)
assign in interface Vectorassign in class AbstractVectorpublic boolean isDense()
public boolean isSequentialAccess()
public double getQuick(int index)
public void setQuick(int index,
double value)
public int getNumNondefaultElements()
public RandomAccessSparseVector like()
public Iterator<Vector.Element> iterateNonZero()
public Iterator<Vector.Element> iterator()