|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractParallelAnyArray.OPap groovyx.gpars.extra166y.ParallelArrayWithDoubleMapping
public abstract class ParallelArrayWithDoubleMapping extends OPap
A prefix view of ParallelArray 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 ParallelArray or its other prefix classes.
Constructor Summary | |
ParallelArrayWithDoubleMapping(ForkJoinPool ex, int origin, int fence, java.lang.Object[] array)
|
Method Summary | |
---|---|
ParallelDoubleArray
|
all()
Returns a new ParallelDoubleArray holding mappings |
void
|
apply(DoubleProcedure procedure)
Applies the given procedure |
double
|
max()
Returns the maximum element, or -Double.MAX_VALUE if empty |
double
|
max(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(DoubleComparator comparator)
Returns the minimum element, or Double.MAX_VALUE if empty |
double
|
reduce(DoubleReducer reducer, double base)
Returns reduction of mapped elements |
java.lang.Iterable
|
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 |
SummaryStatistics
|
summary(DoubleComparator comparator)
Returns summary statistics |
SummaryStatistics
|
summary()
Returns summary statistics, using natural comparator |
ParallelArrayWithMapping
|
withIndexedMapping(IntAndDoubleToObject 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. |
ParallelArrayWithDoubleMapping
|
withIndexedMapping(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. |
ParallelArrayWithLongMapping
|
withIndexedMapping(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. |
ParallelArrayWithDoubleMapping
|
withMapping(DoubleOp op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithLongMapping
|
withMapping(DoubleToLong op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithMapping
|
withMapping(DoubleToObject op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelArrayWithMapping
|
withMapping(DoubleAndObjectToObject combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithMapping
|
withMapping(DoubleAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithMapping
|
withMapping(DoubleAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithDoubleMapping
|
withMapping(DoubleAndObjectToDouble combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithDoubleMapping
|
withMapping(BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithDoubleMapping
|
withMapping(DoubleAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithLongMapping
|
withMapping(DoubleAndObjectToLong combiner, ParallelArrayWithMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithLongMapping
|
withMapping(DoubleAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
ParallelArrayWithLongMapping
|
withMapping(DoubleAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
Returns an operation prefix that causes a method to operate on binary mappings of this array and the other array. |
Constructor Detail |
---|
ParallelArrayWithDoubleMapping(ForkJoinPool ex, int origin, int fence, java.lang.Object[] array)
Method Detail |
---|
public ParallelDoubleArray all()
public void apply(DoubleProcedure procedure)
procedure
- the procedure
public double max()
public double max(DoubleComparator comparator)
comparator
- the comparator
public double min()
public double min(DoubleComparator comparator)
comparator
- the comparator
public double reduce(DoubleReducer reducer, double base)
reducer
- the reducerbase
- the result for an empty array
public java.lang.Iterable sequentially()
public double sum()
public SummaryStatistics summary(DoubleComparator comparator)
comparator
- the comparator to use for
locating minimum and maximum elements
public SummaryStatistics summary()
public ParallelArrayWithMapping withIndexedMapping(IntAndDoubleToObject mapper)
mapper
- the mapper
public ParallelArrayWithDoubleMapping withIndexedMapping(IntAndDoubleToDouble mapper)
mapper
- the mapper
public ParallelArrayWithLongMapping withIndexedMapping(IntAndDoubleToLong mapper)
mapper
- the mapper
public ParallelArrayWithDoubleMapping withMapping(DoubleOp op)
op
- the op
public ParallelArrayWithLongMapping withMapping(DoubleToLong op)
op
- the op
public ParallelArrayWithMapping withMapping(DoubleToObject op)
op
- the op
public ParallelArrayWithMapping withMapping(DoubleAndObjectToObject combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithMapping withMapping(DoubleAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithMapping withMapping(DoubleAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithDoubleMapping withMapping(DoubleAndObjectToDouble combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithDoubleMapping withMapping(BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithDoubleMapping withMapping(DoubleAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithLongMapping withMapping(DoubleAndObjectToLong combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithLongMapping withMapping(DoubleAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelArrayWithLongMapping withMapping(DoubleAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
Copyright © 2008–2012 Václav Pech. All Rights Reserved.