Package ffx.numerics.atomic
@ParametersAreNonnullByDefault
package ffx.numerics.atomic
The Atomic package has implementations of a double array that can be safely operated on by
multiple threads.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
-
ClassDescriptionAdderDoubleArray implements the AtomicDoubleArray interface using an array of
java.util.concurrent.atomic.DoubleAdder
.This interface abstracts away the implementation of maintaining a 1D double array that is operated on by multiple threads.AtomicDoubleArray implementations (ADDER, MULTI, PJ).Implementation of maintaining a 3D double array that is operated on by multiple threads.The MultiDoubleArray avoids the need for Atomic variables, but at the cost of storing a full size double array for each thread.PJDoubleArray implements the AtomicDoubleArray interface using the Parallel Java class SharedDoubleArray.