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