Package org.ojalgo.structure
Interface Mutate1D.Mixable<N extends java.lang.Comparable<N>>
-
- All Superinterfaces:
Structure1D
- All Known Subinterfaces:
Mutate2D.Mixable<N>
,MutateAnyD.Mixable<N>
- All Known Implementing Classes:
Array1D
,Array2D
,ArrayAnyD
,LongToNumberMap
,NumberList
- Enclosing interface:
- Mutate1D
public static interface Mutate1D.Mixable<N extends java.lang.Comparable<N>> extends Structure1D
Mix/combine the previously existing value, at index, with the supplied addend. The intention is that implementations should make this method thread safe even if the class as a whole is not (which is usually the case).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,B extends Structure1D.Logical<S,B>>, Structure1D.LongIndex, Structure1D.LoopCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
mix(long index, BinaryFunction<N> mixer, double addend)
N
mix(long index, BinaryFunction<N> mixer, N addend)
-
Methods inherited from interface org.ojalgo.structure.Structure1D
count, size
-
-
-
-
Method Detail
-
mix
double mix(long index, BinaryFunction<N> mixer, double addend)
- Returns:
- The new/mixed value
-
mix
N mix(long index, BinaryFunction<N> mixer, N addend)
-
-