Package org.orekit.utils
Class FieldArrayDictionary.Entry
java.lang.Object
org.orekit.utils.FieldArrayDictionary.Entry
- Enclosing class:
FieldArrayDictionary<T extends CalculusFieldElement<T>>
Entry in a dictionary.
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the entry key.T[]getValue()Get the value.voidincrement(double[] increment) Increment the value.voidIncrement the value.voidscaledIncrement(double factor, FieldArrayDictionary<T>.Entry raw) Increment the value with another scaled entry.voidscaledIncrement(T factor, FieldArrayDictionary<T>.Entry raw) Increment the value with another scaled entry.intsize()Get the size of the value array.voidzero()Reset the value to zero.
-
Method Details
-
getKey
Get the entry key.- Returns:
- entry key
-
getValue
Get the value.- Returns:
- a copy of the value (independent from internal array)
-
size
public int size()Get the size of the value array.- Returns:
- size of the value array
-
increment
Increment the value.For the sake of performance, no checks are done on argument.
- Parameters:
increment- increment to apply to the entry value
-
increment
public void increment(double[] increment) Increment the value.For the sake of performance, no checks are done on argument.
- Parameters:
increment- increment to apply to the entry value
-
scaledIncrement
Increment the value with another scaled entry.Each component
value[i]will be replaced byvalue[i] + factor * raw.value[i].For the sake of performance, no checks are done on arguments.
- Parameters:
factor- multiplicative factor for incrementraw- raw increment to be multiplied byfactorand then added- Since:
- 11.1.1
-
scaledIncrement
Increment the value with another scaled entry.Each component
value[i]will be replaced byvalue[i] + factor * raw.value[i].For the sake of performance, no checks are done on arguments.
- Parameters:
factor- multiplicative factor for incrementraw- raw increment to be multiplied byfactorand then added- Since:
- 11.1.1
-
zero
public void zero()Reset the value to zero.
-