|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.linear.RealVector.Entry
org.apache.commons.math3.linear.OpenMapRealVector.OpenMapEntry
protected class OpenMapRealVector.OpenMapEntry
Implementation of Entry
optimized for OpenMap.
This implementation does not allow arbitrary calls to setIndex
since the order in which entries are returned is undefined.
Constructor Summary | |
---|---|
protected |
OpenMapRealVector.OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
Build an entry from an iterator point to an element. |
Method Summary | |
---|---|
int |
getIndex()
Get the index of the entry. |
double |
getValue()
Get the value of the entry. |
void |
setValue(double value)
Set the value of the entry. |
Methods inherited from class org.apache.commons.math3.linear.RealVector.Entry |
---|
setIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OpenMapRealVector.OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
iter
- Iterator pointing to the entry.Method Detail |
---|
public double getValue()
getValue
in class RealVector.Entry
public void setValue(double value)
setValue
in class RealVector.Entry
value
- New value for the entry.public int getIndex()
getIndex
in class RealVector.Entry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |