Package | Description |
---|---|
groovyx.gpars.extra166y |
Collections supporting parallel operations.
|
Modifier and Type | Method and Description |
---|---|
ParallelDoubleArray |
ParallelDoubleArray.addAll(double[] other)
Equivalent to
asList().addAll but specialized for
array arguments and likely to be more efficient. |
ParallelDoubleArray |
ParallelDoubleArray.addAll(ParallelDoubleArrayWithDoubleMapping other)
Appends all (possibly bounded, filtered, or mapped) elements of
the given ParallelDoubleArray, resizing and/or reallocating this
array if necessary.
|
ParallelDoubleArray |
ParallelArrayWithDoubleMapping.all()
Returns a new ParallelDoubleArray holding mappings.
|
ParallelDoubleArray |
ParallelDoubleArray.all()
Returns a new ParallelDoubleArray holding all elements.
|
ParallelDoubleArray |
ParallelDoubleArrayWithDoubleMapping.all()
Returns a new ParallelDoubleArray holding elements.
|
ParallelDoubleArray |
ParallelLongArrayWithDoubleMapping.all()
Returns a new ParallelDoubleArray holding mappings.
|
ParallelDoubleArray |
ParallelDoubleArray.allUniqueElements()
Returns a new ParallelDoubleArray containing only the unique
elements of this array (that is, without any duplicates).
|
ParallelDoubleArray |
ParallelDoubleArrayWithFilter.allUniqueElements()
Returns a new ParallelDoubleArray containing only unique
elements (that is, without any duplicates).
|
static ParallelDoubleArray |
ParallelDoubleArray.create(int size,
jsr166y.ForkJoinPool executor)
Creates a new ParallelDoubleArray using the given executor and
an array of the given size.
|
static ParallelDoubleArray |
ParallelDoubleArray.createEmpty(int size,
jsr166y.ForkJoinPool executor)
Creates a new ParallelDoubleArray using the given executor and
an array of the given size, but with an initial effective size
of zero, enabling incremental insertion via
asList() operations. |
static ParallelDoubleArray |
ParallelDoubleArray.createFromCopy(double[] source,
jsr166y.ForkJoinPool executor)
Creates a new ParallelDoubleArray using the given executor and
initially holding copies of the given
source elements.
|
static ParallelDoubleArray |
ParallelDoubleArray.createFromCopy(int size,
double[] source,
jsr166y.ForkJoinPool executor)
Creates a new ParallelDoubleArray using an array of the given size,
initially holding copies of the given source truncated or
padded with zeros to obtain the specified length.
|
static ParallelDoubleArray |
ParallelDoubleArray.createUsingHandoff(double[] handoff,
jsr166y.ForkJoinPool executor)
Creates a new ParallelDoubleArray initially using the given array and
executor.
|
ParallelDoubleArray |
ParallelDoubleArray.cumulate(Ops.DoubleReducer reducer,
double base)
Replaces each element with the running cumulation of applying
the given reducer.
|
ParallelDoubleArray |
ParallelDoubleArray.cumulateSum()
Replaces each element with the running sum.
|
ParallelDoubleArray |
ParallelDoubleArray.removeAll(Ops.DoublePredicate selector)
Removes from the array all elements for which the given
selector holds.
|
ParallelDoubleArray |
ParallelDoubleArray.removeConsecutiveDuplicates()
Removes consecutive elements that are equal,
shifting others leftward, and possibly decreasing size.
|
ParallelDoubleArray |
ParallelDoubleArray.replaceWithGeneratedValue(Ops.DoubleGenerator generator)
Replaces elements with the results of applying the given
generator.
|
ParallelDoubleArray |
ParallelDoubleArray.replaceWithMappedIndex(Ops.IntAndDoubleToDouble op)
Replaces elements with the results of applying the given
mapping to each index and current element value.
|
ParallelDoubleArray |
ParallelDoubleArray.replaceWithMappedIndex(Ops.IntToDouble op)
Replaces elements with the results of applying the given
op to their indices.
|
ParallelDoubleArray |
ParallelDoubleArray.replaceWithMapping(Ops.BinaryDoubleOp combiner,
double[] other)
Replaces elements with results of applying
op(thisElement, otherElement) . |
ParallelDoubleArray |
ParallelDoubleArray.replaceWithMapping(Ops.BinaryDoubleOp combiner,
ParallelDoubleArrayWithDoubleMapping other)
Replaces elements with results of applying
op(thisElement, otherElement) . |
ParallelDoubleArray |
ParallelDoubleArray.replaceWithMapping(Ops.DoubleOp op)
Replaces elements with the results of applying the given op
to their current values.
|
ParallelDoubleArray |
ParallelDoubleArray.replaceWithValue(double value)
Replaces elements with the given value.
|
ParallelDoubleArray |
ParallelDoubleArray.sort()
Sorts the array, assuming all elements are Comparable.
|
ParallelDoubleArray |
ParallelDoubleArray.sort(Ops.DoubleComparator comparator)
Sorts the array.
|