public interface IndexAccumulation extends Op
Accumulation
in that both are
accumulation/reduction operations, however index accumulation returns
an integer corresponding to an index, rather than a real (or complex)
value.Modifier and Type | Method and Description |
---|---|
int |
combineSubResults(double first,
int idxFirst,
double second,
int idxSecond)
Combine sub-results, when the index accumulation is split and executed in parallel.
|
int |
combineSubResults(float first,
int idxFirst,
float second,
int idxSecond) |
org.apache.commons.math3.util.Pair<Double,Integer> |
combineSubResults(org.apache.commons.math3.util.Pair<Double,Integer> first,
org.apache.commons.math3.util.Pair<Double,Integer> second) |
int |
getFinalResult()
Get the final result of the IndexAccumulation
|
void |
setFinalResult(int idx)
Set the final index/result of the accumulation.
|
int |
update(double accum,
int accumIdx,
double x,
double y,
int idx)
Do one accumulation update for a pair-wise (2 input) index accumulation
|
int |
update(double accum,
int accumIdx,
double x,
int xIdx)
Do one accumulation update.
|
int |
update(float accum,
int accumIdx,
float x,
float y,
int idx) |
int |
update(float accum,
int accumIdx,
float x,
int xIdx) |
int |
update(IComplexNumber accum,
int accumIdx,
double x,
double y,
int idx)
Accumulation update for pairswise (2 input) complex numbers.
|
int |
update(IComplexNumber accum,
int accumIdx,
double x,
int idx)
Accumulation update for complex numbers.
|
int |
update(IComplexNumber accum,
int accumIdx,
IComplexNumber x,
IComplexNumber y,
int idx)
Accumulation update for pairswise (2 input) complex numbers.
|
int |
update(IComplexNumber accum,
int accumIdx,
IComplexNumber x,
int xIdx)
Accumulation update for complex numbers.
|
IComplexNumber |
zeroComplex()
Complex initial value
|
double |
zeroDouble()
Initial value for the index accumulation
|
float |
zeroFloat()
Initial value for the index accumulation.
|
org.apache.commons.math3.util.Pair<Double,Integer> |
zeroPair()
The initial value and initial index to use
for the accumulation
|
exec, exec, extraArgs, extraArgsBuff, extraArgsDataBuff, init, isExecSpecial, isPassThrough, n, name, numProcessed, op, op, op, op, op, op, op, op, opForDimension, opForDimension, opNum, setN, setX, setY, setZ, x, y, z
int update(double accum, int accumIdx, double x, int xIdx)
accum
- The value at the accumulation indexaccumIdx
- The accumulation indexx
- A value to be processed/accumulatedxIdx
- The index of the value to be processed/accumulatedint update(float accum, int accumIdx, float x, int xIdx)
update(double, int, double, int)
int update(double accum, int accumIdx, double x, double y, int idx)
update(double, int, double, int)
int update(float accum, int accumIdx, float x, float y, int idx)
update(double, int, double, double, int)
int update(IComplexNumber accum, int accumIdx, IComplexNumber x, int xIdx)
update(double, int, double, int)
int update(IComplexNumber accum, int accumIdx, double x, int idx)
update(double, int, double, int)
int update(IComplexNumber accum, int accumIdx, double x, double y, int idx)
update(double, int, double, int)
int update(IComplexNumber accum, int accumIdx, IComplexNumber x, IComplexNumber y, int idx)
update(double, int, double, int)
int combineSubResults(double first, int idxFirst, double second, int idxSecond)
first
- Value of one sub-accumulation (i.e., partial from one thread)idxFirst
- Index of the first valuesecond
- Value of another sub-accumulation (i.e., partial accumulation from another thread)idxSecond
- Index of the second valueint combineSubResults(float first, int idxFirst, float second, int idxSecond)
org.apache.commons.math3.util.Pair<Double,Integer> combineSubResults(org.apache.commons.math3.util.Pair<Double,Integer> first, org.apache.commons.math3.util.Pair<Double,Integer> second)
void setFinalResult(int idx)
int getFinalResult()
double zeroDouble()
float zeroFloat()
org.apache.commons.math3.util.Pair<Double,Integer> zeroPair()
IComplexNumber zeroComplex()
Copyright © 2016. All Rights Reserved.