|
||||||||||
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.LPap groovyx.gpars.extra166y.ParallelLongArrayWithDoubleMapping
public abstract class ParallelLongArrayWithDoubleMapping
A prefix view of ParallelLongArray 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 ParallelLongArray or its other prefix classes.
Nested Class Summary |
---|
Field Summary |
---|
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap |
---|
array |
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
---|
ex, fence, origin, threshold |
Constructor Summary | |
---|---|
ParallelLongArrayWithDoubleMapping(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array)
|
Method Summary | ||
---|---|---|
ParallelDoubleArray |
all()
Returns a new ParallelDoubleArray holding mappings |
|
void |
apply(Ops.DoubleProcedure procedure)
Applies the given procedure |
|
double |
max()
Returns the maximum element, or -Double.MAX_VALUE if empty |
|
double |
max(Ops.DoubleComparator comparator)
Returns the maximum element, or -Double.MAX_VALUE if empty |
|
double |
min()
Returns the minimum element, or Double.MAX_VALUE if empty |
|
double |
min(Ops.DoubleComparator comparator)
Returns the minimum element, or Double.MAX_VALUE if empty |
|
double |
reduce(Ops.DoubleReducer reducer,
double base)
Returns reduction of mapped elements |
|
java.lang.Iterable<java.lang.Double> |
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 |
|
double |
sum()
Returns the sum of elements |
|
ParallelDoubleArray.SummaryStatistics |
summary()
Returns summary statistics, using natural comparator |
|
ParallelDoubleArray.SummaryStatistics |
summary(Ops.DoubleComparator comparator)
Returns summary statistics |
|
abstract ParallelLongArrayWithDoubleMapping |
withIndexedMapping(Ops.IntAndDoubleToDouble 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 ParallelLongArrayWithLongMapping |
withIndexedMapping(Ops.IntAndDoubleToLong 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.IntAndDoubleToObject<? 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. |
|
ParallelLongArrayWithDoubleMapping |
withMapping(Ops.BinaryDoubleOp combiner,
ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
ParallelLongArrayWithLongMapping |
withMapping(Ops.DoubleAndDoubleToLong 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.DoubleAndDoubleToObject<? 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. |
|
ParallelLongArrayWithDoubleMapping |
withMapping(Ops.DoubleAndLongToDouble combiner,
ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
|
ParallelLongArrayWithLongMapping |
withMapping(Ops.DoubleAndLongToLong 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.DoubleAndLongToObject<? 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.DoubleAndObjectToDouble<? 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.DoubleAndObjectToLong<? 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.DoubleAndObjectToObject<? 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 ParallelLongArrayWithDoubleMapping |
withMapping(Ops.DoubleOp op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
|
abstract ParallelLongArrayWithLongMapping |
withMapping(Ops.DoubleToLong op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
|
abstract
|
withMapping(Ops.DoubleToObject<? 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.LPap |
---|
dget, leafMoveByIndex, leafMoveSelected, lgetArray, oget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ParallelLongArrayWithDoubleMapping(jsr166y.ForkJoinPool ex, int origin, int fence, long[] array)
Method Detail |
---|
public void apply(Ops.DoubleProcedure procedure)
procedure
- the procedurepublic double reduce(Ops.DoubleReducer reducer, double base)
reducer
- the reducerbase
- the result for an empty array
public double min()
public double min(Ops.DoubleComparator comparator)
comparator
- the comparator
public double max()
public double max(Ops.DoubleComparator comparator)
comparator
- the comparator
public double sum()
public ParallelDoubleArray.SummaryStatistics summary(Ops.DoubleComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public ParallelDoubleArray.SummaryStatistics summary()
public ParallelDoubleArray all()
public abstract ParallelLongArrayWithLongMapping withMapping(Ops.DoubleToLong op)
op
- the op
public abstract ParallelLongArrayWithDoubleMapping withMapping(Ops.DoubleOp op)
op
- the op
public abstract <U> ParallelLongArrayWithMapping<U> withMapping(Ops.DoubleToObject<? extends U> op)
op
- the op
public <V,W,X> ParallelLongArrayWithMapping<W> withMapping(Ops.DoubleAndObjectToObject<? 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> ParallelLongArrayWithMapping<V> withMapping(Ops.DoubleAndDoubleToObject<? 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> ParallelLongArrayWithMapping<V> withMapping(Ops.DoubleAndLongToObject<? 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> ParallelLongArrayWithDoubleMapping withMapping(Ops.DoubleAndObjectToDouble<? 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 ParallelLongArrayWithDoubleMapping withMapping(Ops.BinaryDoubleOp 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 ParallelLongArrayWithDoubleMapping withMapping(Ops.DoubleAndLongToDouble 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> ParallelLongArrayWithLongMapping withMapping(Ops.DoubleAndObjectToLong<? 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 ParallelLongArrayWithLongMapping withMapping(Ops.DoubleAndDoubleToLong 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 ParallelLongArrayWithLongMapping withMapping(Ops.DoubleAndLongToLong 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> ParallelLongArrayWithMapping<V> withIndexedMapping(Ops.IntAndDoubleToObject<? extends V> mapper)
mapper
- the mapper
public abstract ParallelLongArrayWithDoubleMapping withIndexedMapping(Ops.IntAndDoubleToDouble mapper)
mapper
- the mapper
public abstract ParallelLongArrayWithLongMapping withIndexedMapping(Ops.IntAndDoubleToLong mapper)
mapper
- the mapper
public java.lang.Iterable<java.lang.Double> 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 |