Package org.hipparchus.linear
Class OpenMapRealVector.OpenMapEntry
java.lang.Object
org.hipparchus.linear.RealVector.Entry
org.hipparchus.linear.OpenMapRealVector.OpenMapEntry
- Enclosing class:
- OpenMapRealVector
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
ModifierConstructorDescriptionprotected
Build an entry from an iterator point to an element. -
Method Summary
Methods inherited from class org.hipparchus.linear.RealVector.Entry
setIndex
-
Constructor Details
-
OpenMapEntry
Build an entry from an iterator point to an element.- Parameters:
iter
- Iterator pointing to the entry.
-
-
Method Details
-
getValue
public double getValue()Get the value of the entry.- Overrides:
getValue
in classRealVector.Entry
- Returns:
- the value of the entry.
-
setValue
public void setValue(double value) Set the value of the entry.- Overrides:
setValue
in classRealVector.Entry
- Parameters:
value
- New value for the entry.
-
getIndex
public int getIndex()Get the index of the entry.- Overrides:
getIndex
in classRealVector.Entry
- Returns:
- the index of the entry.
-