|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.extra166y.AbstractParallelAnyArray groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap groovyx.gpars.extra166y.ParallelDoubleArrayWithLongMapping
public abstract class ParallelDoubleArrayWithLongMapping
A prefix view of ParallelDoubleArray that causes operations to apply to mappings of elements, not to the elements themselves. Instances of this class may be constructed only via prefix methods of ParallelDoubleArray or its other prefix classes.
Nested Class Summary |
---|
Field Summary |
---|
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap |
---|
array |
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
---|
ex, fence, origin, threshold |
Constructor Summary | |
---|---|
ParallelDoubleArrayWithLongMapping(jsr166y.ForkJoinPool ex,
int origin,
int fence,
double[] array)
|
Method Summary | ||
---|---|---|
ParallelLongArray |
all()
Returns a new ParallelLongArray holding mappings |
|
void |
apply(Ops.LongProcedure procedure)
Applies the given procedure |
|
long |
max()
Returns the maximum element, or Long.MIN_VALUE if empty |
|
long |
max(Ops.LongComparator comparator)
Returns the maximum element, or Long.MIN_VALUE if empty |
|
long |
min()
Returns the minimum element, or Long.MAX_VALUE if empty |
|
long |
min(Ops.LongComparator comparator)
Returns the minimum element, or Long.MAX_VALUE if empty |
|
long |
reduce(Ops.LongReducer reducer,
long base)
Returns reduction of mapped elements |
|
java.lang.Iterable<java.lang.Long> |
sequentially()
Returns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel |
|
long |
sum()
Returns the sum of elements |
|
ParallelLongArray.SummaryStatistics |
summary()
Returns summary statistics, using natural comparator |
|
ParallelLongArray.SummaryStatistics |
summary(Ops.LongComparator comparator)
Returns summary statistics |
|
abstract ParallelDoubleArrayWithDoubleMapping |
withIndexedMapping(Ops.IntAndLongToDouble mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
abstract ParallelDoubleArrayWithLongMapping |
withIndexedMapping(Ops.IntAndLongToLong mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
abstract
|
withIndexedMapping(Ops.IntAndLongToObject<? extends V> mapper)
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value. |
|
ParallelDoubleArrayWithLongMapping |
withMapping(Ops.BinaryLongOp combiner,
ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
ParallelDoubleArrayWithDoubleMapping |
withMapping(Ops.LongAndDoubleToDouble combiner,
ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
ParallelDoubleArrayWithLongMapping |
withMapping(Ops.LongAndDoubleToLong combiner,
ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
|
withMapping(Ops.LongAndDoubleToObject<? extends V> combiner,
ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
ParallelDoubleArrayWithDoubleMapping |
withMapping(Ops.LongAndLongToDouble combiner,
ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
|
withMapping(Ops.LongAndLongToObject<? extends V> combiner,
ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
|
withMapping(Ops.LongAndObjectToDouble<? super V> combiner,
ParallelArrayWithMapping<W,V> other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
|
withMapping(Ops.LongAndObjectToLong<? super V> combiner,
ParallelArrayWithMapping<W,V> other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
|
withMapping(Ops.LongAndObjectToObject<? super V,? extends W> combiner,
ParallelArrayWithMapping<X,V> other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
abstract ParallelDoubleArrayWithLongMapping |
withMapping(Ops.LongOp op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
|
abstract ParallelDoubleArrayWithDoubleMapping |
withMapping(Ops.LongToDouble op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
|
abstract
|
withMapping(Ops.LongToObject<? extends U> op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap |
---|
dgetArray, leafMoveByIndex, leafMoveSelected, lget, oget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ParallelDoubleArrayWithLongMapping(jsr166y.ForkJoinPool ex, int origin, int fence, double[] array)
Method Detail |
---|
public void apply(Ops.LongProcedure procedure)
procedure
- the procedurepublic long reduce(Ops.LongReducer reducer, long base)
reducer
- the reducerbase
- the result for an empty array
public long min()
public long min(Ops.LongComparator comparator)
comparator
- the comparator
public long max()
public long max(Ops.LongComparator comparator)
comparator
- the comparator
public long sum()
public ParallelLongArray.SummaryStatistics summary(Ops.LongComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public ParallelLongArray.SummaryStatistics summary()
public ParallelLongArray all()
public abstract ParallelDoubleArrayWithDoubleMapping withMapping(Ops.LongToDouble op)
op
- the op
public abstract ParallelDoubleArrayWithLongMapping withMapping(Ops.LongOp op)
op
- the op
public abstract <U> ParallelDoubleArrayWithMapping<U> withMapping(Ops.LongToObject<? extends U> op)
op
- the op
public <V,W,X> ParallelDoubleArrayWithMapping<W> withMapping(Ops.LongAndObjectToObject<? super V,? extends W> combiner, ParallelArrayWithMapping<X,V> other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public <V> ParallelDoubleArrayWithMapping<V> withMapping(Ops.LongAndDoubleToObject<? extends V> combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public <V> ParallelDoubleArrayWithMapping<V> withMapping(Ops.LongAndLongToObject<? extends V> combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public <V,W> ParallelDoubleArrayWithDoubleMapping withMapping(Ops.LongAndObjectToDouble<? super V> combiner, ParallelArrayWithMapping<W,V> other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public ParallelDoubleArrayWithDoubleMapping withMapping(Ops.LongAndDoubleToDouble combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public ParallelDoubleArrayWithDoubleMapping withMapping(Ops.LongAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public <V,W> ParallelDoubleArrayWithLongMapping withMapping(Ops.LongAndObjectToLong<? super V> combiner, ParallelArrayWithMapping<W,V> other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public ParallelDoubleArrayWithLongMapping withMapping(Ops.LongAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public ParallelDoubleArrayWithLongMapping withMapping(Ops.BinaryLongOp combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
java.lang.IllegalArgumentException
- if other array is a
filtered view (all filters must precede all mappings).public abstract <V> ParallelDoubleArrayWithMapping<V> withIndexedMapping(Ops.IntAndLongToObject<? extends V> mapper)
mapper
- the mapper
public abstract ParallelDoubleArrayWithDoubleMapping withIndexedMapping(Ops.IntAndLongToDouble mapper)
mapper
- the mapper
public abstract ParallelDoubleArrayWithLongMapping withIndexedMapping(Ops.IntAndLongToLong mapper)
mapper
- the mapper
public java.lang.Iterable<java.lang.Long> sequentially()
|
Copyright © 2008–2012 Václav Pech. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |