org.apache.commons.math.linear
protected class OpenMapRealVector.OpenMapEntry extends RealVector.Entry
Entry
optimized for OpenMap.
This implementation does not allow arbitrary calls to setIndex
since the order that entries are returned is undefined.
Modifier and Type | Field and Description |
---|---|
private OpenIntToDoubleHashMap.Iterator |
iter
Iterator pointing to the entry.
|
Modifier | Constructor and Description |
---|---|
protected |
OpenMapRealVector.OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
Build an entry from an iterator point to an element.
|
Modifier and Type | Method and Description |
---|---|
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.
|
setIndex
private final OpenIntToDoubleHashMap.Iterator iter
protected OpenMapRealVector.OpenMapEntry(OpenIntToDoubleHashMap.Iterator iter)
iter
- iterator pointing to the entrypublic 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
Copyright (c) 2003-2014 Apache Software Foundation