public class SequentialAccessSparseVector extends AbstractVector
AbstractVector.LocalElementVector.ElementlengthSquared| 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, zSumfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 Vectorclone in class AbstractVectorpublic Vector assign(Vector other)
assign in interface Vectorassign in class AbstractVectorpublic String toString()
toString in class AbstractVectorpublic 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()