protected class AbstractRealVector.SparseEntryIterator extends java.lang.Object implements java.util.Iterator<RealVector.Entry>
| Modifier and Type | Field and Description |
|---|---|
private AbstractRealVector.EntryImpl |
current
last entry returned by
next() |
private int |
dim
Dimension of the vector.
|
private AbstractRealVector.EntryImpl |
next
Next entry for
next() to return. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRealVector.SparseEntryIterator()
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
advance(AbstractRealVector.EntryImpl e)
Advance an entry up to the next nonzero one.
|
boolean |
hasNext() |
RealVector.Entry |
next() |
void |
remove() |
private final int dim
private AbstractRealVector.EntryImpl current
next()private AbstractRealVector.EntryImpl next
next() to return.protected AbstractRealVector.SparseEntryIterator()
protected void advance(AbstractRealVector.EntryImpl e)
e - entry to advancepublic boolean hasNext()
hasNext in interface java.util.Iterator<RealVector.Entry>public RealVector.Entry next()
next in interface java.util.Iterator<RealVector.Entry>public void remove()
remove in interface java.util.Iterator<RealVector.Entry>Copyright (c) 2003-2013 Apache Software Foundation