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 and description |
---|
ParallelDoubleArrayWithDoubleMapping
(java.util.concurrent.ForkJoinPool ex, int origin, int fence, double[] array) |
Type | Name and description |
---|---|
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<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. |
SummaryStatistics |
summary(DoubleComparator comparator) Returns summary statistics. |
SummaryStatistics |
summary() Returns summary statistics, using natural comparator. |
ParallelDoubleArrayWithMapping<V> |
withIndexedMapping(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. |
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<U> |
withMapping(DoubleToObject<? extends U> op) Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op. |
ParallelDoubleArrayWithMapping<W> |
withMapping(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. |
ParallelDoubleArrayWithMapping<V> |
withMapping(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. |
ParallelDoubleArrayWithMapping<V> |
withMapping(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. |
ParallelDoubleArrayWithDoubleMapping |
withMapping(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. |
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<? 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. |
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. |
Returns a new ParallelDoubleArray holding elements.
Applies the given procedure to elements.
procedure
- the procedureReturns the maximum element, or -Double.MAX_VALUE if empty.
Returns the maximum element, or -Double.MAX_VALUE if empty.
comparator
- the comparatorReturns the minimum element, or Double.MAX_VALUE if empty.
Returns the minimum element, or Double.MAX_VALUE if empty.
comparator
- the comparatorReturns reduction of elements.
reducer
- the reducerbase
- the result for an empty arrayReturns an Iterable view to sequentially step through mapped elements also obeying bound and filter constraints, without performing computations to evaluate them in parallel.
Returns the sum of elements.
Returns summary statistics.
comparator
- the comparator to use for
locating minimum and maximum elementsReturns summary statistics, using natural comparator.
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.
mapper
- the mapperReturns 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.
mapper
- the mapperReturns 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.
mapper
- the mapperReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
op
- the opReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayReturns an operation prefix that causes a method to operate on binary mappings of this array and the other array.
combiner
- the combinerother
- the other arrayCopyright © 2008–2014 Václav Pech. All Rights Reserved.