groovyx.gpars.extra166y
[Java] Class AbstractParallelAnyArray
java.lang.Object
groovyx.gpars.extra166y.AbstractParallelAnyArray
public abstract class AbstractParallelAnyArray
Abstract class serving as the basis of parallel
array classes across types.
Method Summary |
double[]
|
allDoubles()
|
long[]
|
allLongs()
|
java.lang.Object[]
|
allObjects(java.lang.Class elementType)
Shared support for select/map all -- probe filter, map, and
type to start selection driver, or do parallel mapping, or
just copy,
|
int
|
anyIndex()
Returns the index of some element matching bound and filter
constraints, or -1 if none.
|
void
|
boundsCheck(int lo, int hi)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToLong fst, IntAndLongToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToLong fst, IntAndLongToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToLong fst, IntAndLongToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToObject fst, Op snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToObject fst, ObjectToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToObject fst, ObjectToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToObject fst, Op snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToObject fst, ObjectToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToObject fst, ObjectToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToObject fst, Op snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToObject fst, ObjectToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToObject fst, ObjectToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToDouble fst, DoubleToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToDouble fst, DoubleOp snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToDouble fst, DoubleToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToDouble fst, DoubleToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToDouble fst, DoubleOp snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToDouble fst, DoubleToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToDouble fst, DoubleToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToDouble fst, DoubleOp snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToDouble fst, DoubleToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(IntAndObjectToLong fst, LongToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(IntAndObjectToLong fst, LongToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(IntAndObjectToLong fst, LongOp snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(IntAndDoubleToLong fst, LongToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(IntAndDoubleToLong fst, LongToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(IntAndDoubleToLong fst, LongOp snd)
|
static IntAndLongToObject
|
compoundIndexedOp(IntAndLongToLong fst, LongToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(IntAndLongToLong fst, LongToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(IntAndLongToLong fst, LongOp snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(Op fst, IntAndObjectToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(Op fst, IntAndObjectToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(Op fst, IntAndObjectToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(DoubleToObject fst, IntAndObjectToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(DoubleToObject fst, IntAndObjectToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(DoubleToObject fst, IntAndObjectToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(LongToObject fst, IntAndObjectToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(LongToObject fst, IntAndObjectToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(LongToObject fst, IntAndObjectToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(DoubleOp fst, IntAndDoubleToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(DoubleOp fst, IntAndDoubleToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(DoubleOp fst, IntAndDoubleToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(LongToDouble fst, IntAndDoubleToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(LongToDouble fst, IntAndDoubleToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(LongToDouble fst, IntAndDoubleToLong snd)
|
static IntAndObjectToObject
|
compoundIndexedOp(ObjectToLong fst, IntAndLongToObject snd)
|
static IntAndObjectToDouble
|
compoundIndexedOp(ObjectToLong fst, IntAndLongToDouble snd)
|
static IntAndObjectToLong
|
compoundIndexedOp(ObjectToLong fst, IntAndLongToLong snd)
|
static IntAndDoubleToObject
|
compoundIndexedOp(DoubleToLong fst, IntAndLongToObject snd)
|
static IntAndDoubleToDouble
|
compoundIndexedOp(DoubleToLong fst, IntAndLongToDouble snd)
|
static IntAndDoubleToLong
|
compoundIndexedOp(DoubleToLong fst, IntAndLongToLong snd)
|
static IntAndLongToObject
|
compoundIndexedOp(LongOp fst, IntAndLongToObject snd)
|
static IntAndLongToDouble
|
compoundIndexedOp(LongOp fst, IntAndLongToDouble snd)
|
static IntAndLongToLong
|
compoundIndexedOp(LongOp fst, IntAndLongToLong snd)
|
static IntAndObjectPredicate
|
compoundIndexedSelector(Predicate fst, IntAndObjectPredicate snd)
|
static IntAndObjectPredicate
|
compoundIndexedSelector(IntAndObjectPredicate fst, IntAndObjectPredicate snd)
|
static IntAndObjectPredicate
|
compoundIndexedSelector(IntAndObjectPredicate fst, Predicate snd)
|
static IntAndDoublePredicate
|
compoundIndexedSelector(DoublePredicate fst, IntAndDoublePredicate snd)
|
static IntAndDoublePredicate
|
compoundIndexedSelector(IntAndDoublePredicate fst, IntAndDoublePredicate snd)
|
static IntAndDoublePredicate
|
compoundIndexedSelector(IntAndDoublePredicate fst, DoublePredicate snd)
|
static IntAndLongPredicate
|
compoundIndexedSelector(LongPredicate fst, IntAndLongPredicate snd)
|
static IntAndLongPredicate
|
compoundIndexedSelector(IntAndLongPredicate fst, IntAndLongPredicate snd)
|
static IntAndLongPredicate
|
compoundIndexedSelector(IntAndLongPredicate fst, LongPredicate snd)
|
int
|
computeThreshold()
Returns size threshold for splitting into subtask.
|
double
|
dget(int index)
|
double[]
|
dgetArray()
|
int
|
getThreshold()
Returns lazily computed threshold.
|
boolean
|
hasFilter()
|
boolean
|
hasMap()
|
static IntAndObjectToObject
|
indexedMapper(BinaryOp combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndObjectToDouble
|
indexedMapper(ObjectAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndObjectToLong
|
indexedMapper(ObjectAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndObjectToObject
|
indexedMapper(ObjectAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndObjectToDouble
|
indexedMapper(ObjectAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndObjectToLong
|
indexedMapper(ObjectAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndObjectToObject
|
indexedMapper(ObjectAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndObjectToDouble
|
indexedMapper(ObjectAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndObjectToLong
|
indexedMapper(ObjectAndLongToLong combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndDoubleToObject
|
indexedMapper(DoubleAndObjectToObject combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndDoubleToDouble
|
indexedMapper(DoubleAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndDoubleToLong
|
indexedMapper(DoubleAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndDoubleToObject
|
indexedMapper(DoubleAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndDoubleToDouble
|
indexedMapper(BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndDoubleToLong
|
indexedMapper(DoubleAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndDoubleToObject
|
indexedMapper(DoubleAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndDoubleToDouble
|
indexedMapper(DoubleAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndDoubleToLong
|
indexedMapper(DoubleAndLongToLong combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndLongToObject
|
indexedMapper(LongAndObjectToObject combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndLongToDouble
|
indexedMapper(LongAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndLongToLong
|
indexedMapper(LongAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
|
static IntAndLongToObject
|
indexedMapper(LongAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndLongToDouble
|
indexedMapper(LongAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndLongToLong
|
indexedMapper(LongAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndLongToObject
|
indexedMapper(LongAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndLongToDouble
|
indexedMapper(LongAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndLongToLong
|
indexedMapper(BinaryLongOp combiner, ParallelLongArrayWithLongMapping u, int origin)
|
static IntAndObjectPredicate
|
indexedSelector(BinaryPredicate bp, ParallelArrayWithMapping u, int origin)
|
static IntAndDoublePredicate
|
indexedSelector(BinaryDoublePredicate bp, ParallelDoubleArrayWithDoubleMapping u, int origin)
|
static IntAndLongPredicate
|
indexedSelector(BinaryLongPredicate bp, ParallelLongArrayWithLongMapping u, int origin)
|
boolean
|
isEmpty()
Returns true if there are no elements
|
boolean
|
isSelected(int index)
|
void
|
leafApply(int lo, int hi, Procedure procedure)
|
void
|
leafApply(int lo, int hi, DoubleProcedure procedure)
|
void
|
leafApply(int lo, int hi, LongProcedure procedure)
|
void
|
leafBinaryIndexMap(int l, int h, IntAndObjectToObject op)
|
void
|
leafBinaryIndexMap(int l, int h, IntAndDoubleToDouble op)
|
void
|
leafBinaryIndexMap(int l, int h, IntAndLongToLong op)
|
void
|
leafCombineInPlace(int lo, int hi, java.lang.Object[] other, int otherOffset, BinaryOp combiner)
|
void
|
leafCombineInPlace(int lo, int hi, ParallelArrayWithMapping other, int otherOffset, BinaryOp combiner)
|
void
|
leafCombineInPlace(int lo, int hi, double[] other, int otherOffset, BinaryDoubleOp combiner)
|
void
|
leafCombineInPlace(int lo, int hi, ParallelDoubleArrayWithDoubleMapping other, int otherOffset, BinaryDoubleOp combiner)
|
void
|
leafCombineInPlace(int lo, int hi, long[] other, int otherOffset, BinaryLongOp combiner)
|
void
|
leafCombineInPlace(int lo, int hi, ParallelLongArrayWithLongMapping other, int otherOffset, BinaryLongOp combiner)
|
void
|
leafFill(int l, int h, java.lang.Object value)
|
void
|
leafFill(int l, int h, double value)
|
void
|
leafFill(int l, int h, long value)
|
void
|
leafGenerate(int l, int h, Generator generator)
|
void
|
leafGenerate(int l, int h, DoubleGenerator generator)
|
void
|
leafGenerate(int l, int h, LongGenerator generator)
|
void
|
leafIndexMap(int l, int h, IntToObject op)
|
void
|
leafIndexMap(int l, int h, IntToDouble array)
|
void
|
leafIndexMap(int l, int h, IntToLong array)
|
int
|
leafIndexSelected(int lo, int hi, boolean positive, int[] indices)
|
void
|
leafMoveByIndex(int[] indices, int loIdx, int hiIdx, int offset)
|
int
|
leafMoveSelected(int lo, int hi, int offset, boolean positive)
|
java.lang.Object
|
leafReduce(int lo, int hi, Reducer reducer, java.lang.Object base)
|
double
|
leafReduce(int lo, int hi, DoubleReducer reducer, double base)
|
long
|
leafReduce(int lo, int hi, LongReducer reducer, long base)
|
void
|
leafTransfer(int lo, int hi, java.lang.Object[] dest, int offset)
|
void
|
leafTransfer(int lo, int hi, double[] dest, int offset)
|
void
|
leafTransfer(int lo, int hi, long[] dest, int offset)
|
void
|
leafTransferByIndex(int[] indices, int loIdx, int hiIdx, java.lang.Object[] dest, int offset)
|
void
|
leafTransferByIndex(int[] indices, int loIdx, int hiIdx, double[] dest, int offset)
|
void
|
leafTransferByIndex(int[] indices, int loIdx, int hiIdx, long[] dest, int offset)
|
void
|
leafTransform(int l, int h, Op op)
|
void
|
leafTransform(int l, int h, DoubleOp op)
|
void
|
leafTransform(int l, int h, LongOp op)
|
long
|
lget(int index)
|
long[]
|
lgetArray()
|
java.lang.Object
|
oget(int index)
|
java.lang.Object[]
|
ogetArray()
Access methods for ref, double, long.
|
int
|
size()
Returns the number of elements selected using bound or
filter restrictions.
|
Methods inherited from class java.lang.Object
|
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
ex
final ForkJoinPool ex
-
fence
int fence
-
origin
final int origin
-
threshold
int threshold
-
AbstractParallelAnyArray
AbstractParallelAnyArray(ForkJoinPool ex, int origin, int fence)
-
allDoubles
final double[] allDoubles()
-
allLongs
final long[] allLongs()
-
allObjects
final java.lang.Object[] allObjects(java.lang.Class elementType)
- Shared support for select/map all -- probe filter, map, and
type to start selection driver, or do parallel mapping, or
just copy,
anyIndex
public int anyIndex()
- Returns the index of some element matching bound and filter
constraints, or -1 if none.
- Returns:
- index of matching element, or -1 if none.
boundsCheck
void boundsCheck(int lo, int hi)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToObject fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToObject fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToObject fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToDouble fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToLong fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToDouble fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToDouble fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToLong fst, IntAndLongToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToLong fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToLong fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToLong fst, IntAndLongToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToObject fst, Op snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToObject fst, ObjectToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToObject fst, ObjectToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToObject fst, Op snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToObject fst, ObjectToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToObject fst, ObjectToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToObject fst, Op snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToObject fst, ObjectToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToObject fst, ObjectToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToDouble fst, DoubleToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToDouble fst, DoubleOp snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToDouble fst, DoubleToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToDouble fst, DoubleToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToDouble fst, DoubleOp snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToDouble fst, DoubleToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToDouble fst, DoubleToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToDouble fst, DoubleOp snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToDouble fst, DoubleToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(IntAndObjectToLong fst, LongToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(IntAndObjectToLong fst, LongToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(IntAndObjectToLong fst, LongOp snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(IntAndDoubleToLong fst, LongToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(IntAndDoubleToLong fst, LongToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(IntAndDoubleToLong fst, LongOp snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(IntAndLongToLong fst, LongToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(IntAndLongToLong fst, LongToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(IntAndLongToLong fst, LongOp snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(Op fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(Op fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(Op fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(DoubleToObject fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(DoubleToObject fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(DoubleToObject fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(LongToObject fst, IntAndObjectToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(LongToObject fst, IntAndObjectToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(LongToObject fst, IntAndObjectToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(ObjectToDouble fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(DoubleOp fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(DoubleOp fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(DoubleOp fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(LongToDouble fst, IntAndDoubleToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(LongToDouble fst, IntAndDoubleToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(LongToDouble fst, IntAndDoubleToLong snd)
-
compoundIndexedOp
static IntAndObjectToObject compoundIndexedOp(ObjectToLong fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndObjectToDouble compoundIndexedOp(ObjectToLong fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndObjectToLong compoundIndexedOp(ObjectToLong fst, IntAndLongToLong snd)
-
compoundIndexedOp
static IntAndDoubleToObject compoundIndexedOp(DoubleToLong fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndDoubleToDouble compoundIndexedOp(DoubleToLong fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndDoubleToLong compoundIndexedOp(DoubleToLong fst, IntAndLongToLong snd)
-
compoundIndexedOp
static IntAndLongToObject compoundIndexedOp(LongOp fst, IntAndLongToObject snd)
-
compoundIndexedOp
static IntAndLongToDouble compoundIndexedOp(LongOp fst, IntAndLongToDouble snd)
-
compoundIndexedOp
static IntAndLongToLong compoundIndexedOp(LongOp fst, IntAndLongToLong snd)
-
compoundIndexedSelector
static IntAndObjectPredicate compoundIndexedSelector(Predicate fst, IntAndObjectPredicate snd)
-
compoundIndexedSelector
static IntAndObjectPredicate compoundIndexedSelector(IntAndObjectPredicate fst, IntAndObjectPredicate snd)
-
compoundIndexedSelector
static IntAndObjectPredicate compoundIndexedSelector(IntAndObjectPredicate fst, Predicate snd)
-
compoundIndexedSelector
static IntAndDoublePredicate compoundIndexedSelector(DoublePredicate fst, IntAndDoublePredicate snd)
-
compoundIndexedSelector
static IntAndDoublePredicate compoundIndexedSelector(IntAndDoublePredicate fst, IntAndDoublePredicate snd)
-
compoundIndexedSelector
static IntAndDoublePredicate compoundIndexedSelector(IntAndDoublePredicate fst, DoublePredicate snd)
-
compoundIndexedSelector
static IntAndLongPredicate compoundIndexedSelector(LongPredicate fst, IntAndLongPredicate snd)
-
compoundIndexedSelector
static IntAndLongPredicate compoundIndexedSelector(IntAndLongPredicate fst, IntAndLongPredicate snd)
-
compoundIndexedSelector
static IntAndLongPredicate compoundIndexedSelector(IntAndLongPredicate fst, LongPredicate snd)
-
computeThreshold
final int computeThreshold()
- Returns size threshold for splitting into subtask. By
default, uses about 8 times as many tasks as threads
dget
double dget(int index)
-
dgetArray
double[] dgetArray()
-
getThreshold
final int getThreshold()
- Returns lazily computed threshold.
hasFilter
boolean hasFilter()
-
hasMap
boolean hasMap()
-
indexedMapper
static IntAndObjectToObject indexedMapper(BinaryOp combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndObjectToDouble indexedMapper(ObjectAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndObjectToLong indexedMapper(ObjectAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndObjectToObject indexedMapper(ObjectAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndObjectToDouble indexedMapper(ObjectAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndObjectToLong indexedMapper(ObjectAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndObjectToObject indexedMapper(ObjectAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndObjectToDouble indexedMapper(ObjectAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndObjectToLong indexedMapper(ObjectAndLongToLong combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndDoubleToObject indexedMapper(DoubleAndObjectToObject combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndDoubleToDouble indexedMapper(DoubleAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndDoubleToLong indexedMapper(DoubleAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndDoubleToObject indexedMapper(DoubleAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndDoubleToDouble indexedMapper(BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndDoubleToLong indexedMapper(DoubleAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndDoubleToObject indexedMapper(DoubleAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndDoubleToDouble indexedMapper(DoubleAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndDoubleToLong indexedMapper(DoubleAndLongToLong combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndLongToObject indexedMapper(LongAndObjectToObject combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndLongToDouble indexedMapper(LongAndObjectToDouble combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndLongToLong indexedMapper(LongAndObjectToLong combiner, ParallelArrayWithMapping u, int origin)
-
indexedMapper
static IntAndLongToObject indexedMapper(LongAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndLongToDouble indexedMapper(LongAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndLongToLong indexedMapper(LongAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedMapper
static IntAndLongToObject indexedMapper(LongAndLongToObject combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndLongToDouble indexedMapper(LongAndLongToDouble combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedMapper
static IntAndLongToLong indexedMapper(BinaryLongOp combiner, ParallelLongArrayWithLongMapping u, int origin)
-
indexedSelector
static IntAndObjectPredicate indexedSelector(BinaryPredicate bp, ParallelArrayWithMapping u, int origin)
-
indexedSelector
static IntAndDoublePredicate indexedSelector(BinaryDoublePredicate bp, ParallelDoubleArrayWithDoubleMapping u, int origin)
-
indexedSelector
static IntAndLongPredicate indexedSelector(BinaryLongPredicate bp, ParallelLongArrayWithLongMapping u, int origin)
-
isEmpty
public boolean isEmpty()
- Returns true if there are no elements
- Returns:
- true if there are no elements
isSelected
boolean isSelected(int index)
-
leafApply
void leafApply(int lo, int hi, Procedure procedure)
-
leafApply
void leafApply(int lo, int hi, DoubleProcedure procedure)
-
leafApply
void leafApply(int lo, int hi, LongProcedure procedure)
-
leafBinaryIndexMap
void leafBinaryIndexMap(int l, int h, IntAndObjectToObject op)
-
leafBinaryIndexMap
void leafBinaryIndexMap(int l, int h, IntAndDoubleToDouble op)
-
leafBinaryIndexMap
void leafBinaryIndexMap(int l, int h, IntAndLongToLong op)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, java.lang.Object[] other, int otherOffset, BinaryOp combiner)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, ParallelArrayWithMapping other, int otherOffset, BinaryOp combiner)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, double[] other, int otherOffset, BinaryDoubleOp combiner)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, ParallelDoubleArrayWithDoubleMapping other, int otherOffset, BinaryDoubleOp combiner)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, long[] other, int otherOffset, BinaryLongOp combiner)
-
leafCombineInPlace
void leafCombineInPlace(int lo, int hi, ParallelLongArrayWithLongMapping other, int otherOffset, BinaryLongOp combiner)
-
leafFill
void leafFill(int l, int h, java.lang.Object value)
-
leafFill
void leafFill(int l, int h, double value)
-
leafFill
void leafFill(int l, int h, long value)
-
leafGenerate
void leafGenerate(int l, int h, Generator generator)
-
leafGenerate
void leafGenerate(int l, int h, DoubleGenerator generator)
-
leafGenerate
void leafGenerate(int l, int h, LongGenerator generator)
-
leafIndexMap
void leafIndexMap(int l, int h, IntToObject op)
-
leafIndexMap
void leafIndexMap(int l, int h, IntToDouble array)
-
leafIndexMap
void leafIndexMap(int l, int h, IntToLong array)
-
leafIndexSelected
final int leafIndexSelected(int lo, int hi, boolean positive, int[] indices)
-
leafMoveByIndex
void leafMoveByIndex(int[] indices, int loIdx, int hiIdx, int offset)
-
leafMoveSelected
int leafMoveSelected(int lo, int hi, int offset, boolean positive)
-
leafReduce
java.lang.Object leafReduce(int lo, int hi, Reducer reducer, java.lang.Object base)
-
leafReduce
double leafReduce(int lo, int hi, DoubleReducer reducer, double base)
-
leafReduce
long leafReduce(int lo, int hi, LongReducer reducer, long base)
-
leafTransfer
void leafTransfer(int lo, int hi, java.lang.Object[] dest, int offset)
-
leafTransfer
void leafTransfer(int lo, int hi, double[] dest, int offset)
-
leafTransfer
void leafTransfer(int lo, int hi, long[] dest, int offset)
-
leafTransferByIndex
void leafTransferByIndex(int[] indices, int loIdx, int hiIdx, java.lang.Object[] dest, int offset)
-
leafTransferByIndex
void leafTransferByIndex(int[] indices, int loIdx, int hiIdx, double[] dest, int offset)
-
leafTransferByIndex
void leafTransferByIndex(int[] indices, int loIdx, int hiIdx, long[] dest, int offset)
-
leafTransform
void leafTransform(int l, int h, Op op)
-
leafTransform
void leafTransform(int l, int h, DoubleOp op)
-
leafTransform
void leafTransform(int l, int h, LongOp op)
-
lget
long lget(int index)
-
lgetArray
long[] lgetArray()
-
oget
java.lang.Object oget(int index)
-
ogetArray
java.lang.Object[] ogetArray()
- Access methods for ref, double, long. Checking for
null/false return is used as a sort of type test. These
are used to avoid duplication in non-performance-critical
aspects of control, as well as to provide a simple default
mechanism for extensions.
size
public int size()
- Returns the number of elements selected using bound or
filter restrictions. Note that this method must evaluate
all selectors to return its result.
- Returns:
- the number of elements
Copyright © 2008–2012 Václav Pech. All Rights Reserved.