Package org.apache.commons.math.linear
Class RealVector.Entry
- java.lang.Object
-
- org.apache.commons.math.linear.RealVector.Entry
-
- Enclosing interface:
- RealVector
public abstract static class RealVector.Entry extends java.lang.ObjectClass representing a modifiable entry in the vector.
-
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetIndex()Get the index of the entry.abstract doublegetValue()Get the value of the entry.voidsetIndex(int index)Set the index of the entry.abstract voidsetValue(double value)Set the value of the entry.
-
-
-
Method Detail
-
getValue
public abstract double getValue()
Get the value of the entry.- Returns:
- the value of the entry.
-
setValue
public abstract 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.
-
-