Package org.ojalgo.concurrent
Class DivideAndConquer
java.lang.Object
org.ojalgo.concurrent.DivideAndConquer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
call
(ExecutorService executor, int first, int limit, int threshold, int workers, DivideAndConquer.Conquerer conquerer) protected abstract void
conquer
(int first, int limit) final void
invoke
(int first, int limit, int threshold) Synchronous execution - wait until it's finished.
-
Constructor Details
-
DivideAndConquer
public DivideAndConquer()
-
-
Method Details
-
call
static void call(ExecutorService executor, int first, int limit, int threshold, int workers, DivideAndConquer.Conquerer conquerer) -
invoke
public final void invoke(int first, int limit, int threshold) Synchronous execution - wait until it's finished.- Parameters:
first
- The first index, in a range, to include.limit
- The first index NOT to include - last (excl.) index in a range.
-
conquer
protected abstract void conquer(int first, int limit)
-