|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjsr166z.forkjoin.ParallelDoubleArray.WithDoubleMapping
jsr166z.forkjoin.ParallelDoubleArray.WithFilter
jsr166z.forkjoin.ParallelDoubleArray.WithBounds
public static final class ParallelDoubleArray.WithBounds
A restriction of parallel array operations to apply only within a given range of indices.
| Method Summary | ||
|---|---|---|
int |
anyIndex()
Returns the index of some element matching bound filter constraints, or -1 if none. |
|
ParallelDoubleArray |
combine(double[] other,
{double,double=>double} combiner)
Returns a ParallelArray containing results of applying combine(thisElement, otherElement) for each element. |
|
ParallelDoubleArray |
combine(ParallelDoubleArray other,
{double,double=>double} combiner)
Returns a ParallelArray containing results of applying combine(thisElement, otherElement) for each element. |
|
void |
cumulate({double,double=>double} reducer,
double base)
Replaces each element with the running cumulation of applying the given reducer. |
|
void |
cumulateSum()
Replaces each element with the running sum |
|
ParallelDoubleArray |
newArray()
Returns a new ParallelArray holding elements |
|
double |
precumulate({double,double=>double} reducer,
double base)
Replaces each element with the cumulation of applying the given reducer to all previous values, and returns the total reduction. |
|
double |
precumulateSum()
Replaces each element with its prefix sum |
|
int |
size()
Returns the number of elements within bounds |
|
void |
sort()
Sorts the elements, using natural comparator |
|
void |
sort({double,double=>int} cmp)
Sorts the elements. |
|
ParallelDoubleArray.WithFilter |
withFilter({double=>boolean} selector)
Returns an operation prefix that causes a method to operate only on the elements of the array for which the given selector returns true |
|
ParallelDoubleArray.WithDoubleMapping |
withMapping({double=>double} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
ParallelDoubleArray.WithIntMapping |
withMapping({double=>int} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
ParallelDoubleArray.WithLongMapping |
withMapping({double=>long} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
|
withMapping({double=>U} mapper)
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given mapper. |
|
| Methods inherited from class jsr166z.forkjoin.ParallelDoubleArray.WithFilter |
|---|
any, apply, indexOfMax, indexOfMax, indexOfMin, indexOfMin, max, max, min, min, randomFill, reduce, replaceWithCombination, replaceWithCombination, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithTransform, replaceWithValue, sum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ParallelDoubleArray.WithFilter withFilter({double=>boolean} selector)
selector - the selector
public <U> ParallelDoubleArray.WithMapping<U> withMapping({double=>U} mapper)
withMapping in class ParallelDoubleArray.WithFiltermapper - the mapper
public ParallelDoubleArray.WithDoubleMapping withMapping({double=>double} mapper)
withMapping in class ParallelDoubleArray.WithFiltermapper - the mapper
public ParallelDoubleArray.WithLongMapping withMapping({double=>long} mapper)
withMapping in class ParallelDoubleArray.WithFiltermapper - the mapper
public ParallelDoubleArray.WithIntMapping withMapping({double=>int} mapper)
withMapping in class ParallelDoubleArray.WithFiltermapper - the mapper
public int anyIndex()
anyIndex in class ParallelDoubleArray.WithDoubleMapping
public ParallelDoubleArray combine(double[] other,
{double,double=>double} combiner)
other - the other arraycombiner - the combiner
java.lang.ArrayIndexOutOfBoundsException - if other array is
shorter than this array.
public ParallelDoubleArray combine(ParallelDoubleArray other,
{double,double=>double} combiner)
other - the other arraycombiner - the combiner
java.lang.ArrayIndexOutOfBoundsException - if other array is
shorter than this array.public int size()
size in class ParallelDoubleArray.WithDoubleMapping
public void cumulate({double,double=>double} reducer,
double base)
reducer - the reducerbase - the result for an empty arraypublic void cumulateSum()
public double precumulate({double,double=>double} reducer,
double base)
reducer - the reducerbase - the result for an empty array
public double precumulateSum()
public void sort({double,double=>int} cmp)
cmp - the comparator to usepublic void sort()
public ParallelDoubleArray newArray()
ParallelDoubleArray.WithFilter
newArray in class ParallelDoubleArray.WithFilter
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||