|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap groovyx.gpars.extra166y.ParallelDoubleArrayWithDoubleMapping
public abstract class ParallelDoubleArrayWithDoubleMapping extends DPap
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 ParallelDoubleArray or its other prefix classes.
Constructor Summary | |
ParallelDoubleArrayWithDoubleMapping(ForkJoinPool ex, int origin, int fence, double[] array)
|
Method Summary | |
---|---|
ParallelDoubleArray
|
all()
Returns a new ParallelDoubleArray holding elements. |
void
|
apply(DoubleProcedure procedure)
Applies the given procedure to elements. |
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 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. |
ParallelDoubleArrayWithMapping
|
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. |
ParallelDoubleArrayWithDoubleMapping
|
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. |
ParallelDoubleArrayWithLongMapping
|
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. |
ParallelDoubleArrayWithDoubleMapping
|
withMapping(DoubleOp op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelDoubleArrayWithLongMapping
|
withMapping(DoubleToLong op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelDoubleArrayWithMapping
|
withMapping(DoubleToObject op)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelDoubleArrayWithMapping
|
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. |
ParallelDoubleArrayWithMapping
|
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. |
ParallelDoubleArrayWithMapping
|
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. |
ParallelDoubleArrayWithDoubleMapping
|
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. |
ParallelDoubleArrayWithDoubleMapping
|
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. |
ParallelDoubleArrayWithDoubleMapping
|
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. |
ParallelDoubleArrayWithLongMapping
|
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. |
ParallelDoubleArrayWithLongMapping
|
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. |
ParallelDoubleArrayWithLongMapping
|
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 |
---|
ParallelDoubleArrayWithDoubleMapping(ForkJoinPool ex, int origin, int fence, double[] 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 ParallelDoubleArrayWithMapping withIndexedMapping(IntAndDoubleToObject mapper)
mapper
- the mapper
public ParallelDoubleArrayWithDoubleMapping withIndexedMapping(IntAndDoubleToDouble mapper)
mapper
- the mapper
public ParallelDoubleArrayWithLongMapping withIndexedMapping(IntAndDoubleToLong mapper)
mapper
- the mapper
public ParallelDoubleArrayWithDoubleMapping withMapping(DoubleOp op)
op
- the op
public ParallelDoubleArrayWithLongMapping withMapping(DoubleToLong op)
op
- the op
public ParallelDoubleArrayWithMapping withMapping(DoubleToObject op)
op
- the op
public ParallelDoubleArrayWithMapping withMapping(DoubleAndObjectToObject combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithMapping withMapping(DoubleAndDoubleToObject combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithMapping withMapping(DoubleAndLongToObject combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(DoubleAndObjectToDouble combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithDoubleMapping withMapping(DoubleAndLongToDouble combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(DoubleAndObjectToLong combiner, ParallelArrayWithMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(DoubleAndDoubleToLong combiner, ParallelDoubleArrayWithDoubleMapping other)
combiner
- the combinerother
- the other array
public ParallelDoubleArrayWithLongMapping withMapping(DoubleAndLongToLong combiner, ParallelLongArrayWithLongMapping other)
combiner
- the combinerother
- the other array
Copyright © 2008–2013 Václav Pech. All Rights Reserved.