public class CPUIndexAccumulationViaTensorTask extends BaseCPUTask<org.apache.commons.math3.util.Pair<Double,Integer>>
Modifier and Type | Field and Description |
---|---|
protected IndexAccumulation |
op |
protected boolean |
outerTask |
protected List<Task<org.apache.commons.math3.util.Pair<Double,Integer>>> |
subTasks |
Constructor and Description |
---|
CPUIndexAccumulationViaTensorTask(IndexAccumulation op,
int threshold,
boolean outerTask) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.math3.util.Pair<Double,Integer> |
blockUntilComplete()
Assuming invokeAsync() has been called, block until the execution completes
|
org.apache.commons.math3.util.Pair<Double,Integer> |
call()
Compute the result immediately, in the current thread
|
protected org.apache.commons.math3.util.Pair<Double,Integer> |
compute() |
doTensorFirst, invokeAsync, invokeBlocking
exec, getRawResult, setRawResult
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
protected final IndexAccumulation op
protected final boolean outerTask
public CPUIndexAccumulationViaTensorTask(IndexAccumulation op, int threshold, boolean outerTask)
public org.apache.commons.math3.util.Pair<Double,Integer> blockUntilComplete()
Task
public org.apache.commons.math3.util.Pair<Double,Integer> call()
Task
Copyright © 2016. All Rights Reserved.