public class SequentialAccessSparseVector extends AbstractVector
AbstractVector.LocalElement
Vector.Element
lengthSquared
Constructor and Description |
---|
SequentialAccessSparseVector() |
SequentialAccessSparseVector(int cardinality) |
SequentialAccessSparseVector(int cardinality,
int size) |
SequentialAccessSparseVector(SequentialAccessSparseVector other) |
SequentialAccessSparseVector(SequentialAccessSparseVector other,
boolean shallowCopy) |
SequentialAccessSparseVector(Vector other) |
Modifier and Type | Method and Description |
---|---|
Vector |
assign(Vector other) |
SequentialAccessSparseVector |
clone() |
int |
getNumNondefaultElements() |
double |
getQuick(int index) |
boolean |
isDense() |
boolean |
isSequentialAccess() |
Iterator<Vector.Element> |
iterateNonZero() |
Iterator<Vector.Element> |
iterator() |
SequentialAccessSparseVector |
like() |
Vector |
minus(Vector that) |
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, minValue, minValueIndex, norm, normalize, normalize, plus, plus, set, size, times, times, toString, viewPart, zSum
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SequentialAccessSparseVector()
public SequentialAccessSparseVector(int cardinality)
public SequentialAccessSparseVector(int cardinality, int size)
public SequentialAccessSparseVector(Vector other)
public SequentialAccessSparseVector(SequentialAccessSparseVector other, boolean shallowCopy)
public SequentialAccessSparseVector(SequentialAccessSparseVector other)
public SequentialAccessSparseVector clone()
clone
in interface Vector
clone
in class AbstractVector
public Vector assign(Vector other)
assign
in interface Vector
assign
in class AbstractVector
public String toString()
toString
in class AbstractVector
public boolean isDense()
public boolean isSequentialAccess()
public double getQuick(int index)
public void setQuick(int index, double value)
public int getNumNondefaultElements()
public SequentialAccessSparseVector like()
public Iterator<Vector.Element> iterateNonZero()
public Iterator<Vector.Element> iterator()