Package org.apache.commons.math4.linear
Class RealVector.Entry
- java.lang.Object
-
- org.apache.commons.math4.linear.RealVector.Entry
-
- Direct Known Subclasses:
OpenMapRealVector.OpenMapEntry
- Enclosing class:
- RealVector
protected class RealVector.Entry extends java.lang.ObjectAn entry in the vector.
-
-
Constructor Summary
Constructors Constructor Description Entry()Simple constructor.
-
-
-
Method Detail
-
getValue
public double getValue()
Get the value of the entry.- Returns:
- the value of the entry.
-
setValue
public void setValue(double value)
Set the value of the entry.- Parameters:
value- New value for the entry.
-
getIndex
public int getIndex()
Get the index of the entry.- Returns:
- the index of the entry.
-
setIndex
public void setIndex(int index)
Set the index of the entry.- Parameters:
index- New index for the entry.
-
-