Class SparseVector.Entry
- java.lang.Object
-
- dev.nm.algebra.linear.matrix.doubles.matrixtype.sparse.SparseVector.Entry
-
- Enclosing class:
- SparseVector
public static class SparseVector.Entry extends Object
This is an entry in aSparseVector
.
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<SparseVector.Entry>
BY_INDEX
ThisComparator
sorts the vector entries by their indices.
-
Constructor Summary
Constructors Constructor Description Entry(int index, double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
int
index()
Gets the index of this entry in the sparse vector, counting from 1.String
toString()
double
value()
Gets the value of this entry.
-
-
-
Field Detail
-
BY_INDEX
public static final Comparator<SparseVector.Entry> BY_INDEX
ThisComparator
sorts the vector entries by their indices.
-
-