|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovyx.gpars.extra166y.AbstractParallelAnyArray
groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap
groovyx.gpars.extra166y.ParallelDoubleArrayWithDoubleMapping
groovyx.gpars.extra166y.ParallelDoubleArrayWithFilter
public abstract class ParallelDoubleArrayWithFilter
A prefix view of ParallelDoubleArray that causes operations to apply only to elements for which a selector returns true. Instances of this class may be constructed only via prefix methods of ParallelDoubleArray or its other prefix classes.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap |
|---|
array |
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
|---|
ex, fence, origin, threshold |
| Constructor Summary | |
|---|---|
ParallelDoubleArrayWithFilter(jsr166y.ForkJoinPool ex,
int origin,
int fence,
double[] array)
|
|
| Method Summary | |
|---|---|
ParallelDoubleArray |
allUniqueElements()
Returns a new ParallelDoubleArray containing only unique elements (that is, without any duplicates). |
(package private) double |
dget(int i)
|
boolean |
hasAllEqualElements(ParallelDoubleArrayWithDoubleMapping other)
Returns true if all elements at the same relative positions of this and other array are equal. |
(package private) void |
leafTransfer(int lo,
int hi,
double[] dest,
int offset)
|
(package private) void |
leafTransferByIndex(int[] indices,
int loIdx,
int hiIdx,
double[] dest,
int offset)
|
ParallelDoubleArrayWithFilter |
replaceWithGeneratedValue(Ops.DoubleGenerator generator)
Replaces elements with results of applying the given generator. |
ParallelDoubleArrayWithFilter |
replaceWithMappedIndex(Ops.IntAndDoubleToDouble op)
Replaces elements with the results of applying the given mapping to each index and current element value. |
ParallelDoubleArrayWithFilter |
replaceWithMappedIndex(Ops.IntToDouble op)
Replaces elements with the results of applying the given op to their indices. |
ParallelDoubleArrayWithFilter |
replaceWithMapping(Ops.BinaryDoubleOp combiner,
double[] other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelDoubleArrayWithFilter |
replaceWithMapping(Ops.BinaryDoubleOp combiner,
ParallelDoubleArrayWithDoubleMapping other)
Replaces elements with results of applying op(thisElement, otherElement). |
ParallelDoubleArrayWithFilter |
replaceWithMapping(Ops.DoubleOp op)
Replaces elements with the results of applying the given op to their current values. |
ParallelDoubleArrayWithFilter |
replaceWithValue(double value)
Replaces elements with the given value. |
ParallelDoubleArrayWithFilter |
withFilter(Ops.BinaryDoublePredicate selector,
ParallelDoubleArrayWithDoubleMapping other)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given binary selector returns true. |
abstract ParallelDoubleArrayWithFilter |
withFilter(Ops.DoublePredicate selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true. |
abstract ParallelDoubleArrayWithFilter |
withIndexedFilter(Ops.IntAndDoublePredicate selector)
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true. |
| Methods inherited from class groovyx.gpars.extra166y.ParallelDoubleArrayWithDoubleMapping |
|---|
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withIndexedMapping, withIndexedMapping, withIndexedMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
| Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap |
|---|
dgetArray, leafMoveByIndex, leafMoveSelected, lget, oget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ParallelDoubleArrayWithFilter(jsr166y.ForkJoinPool ex,
int origin,
int fence,
double[] array)
| Method Detail |
|---|
public ParallelDoubleArrayWithFilter replaceWithMapping(Ops.DoubleOp op)
op - the op
public ParallelDoubleArrayWithFilter replaceWithMappedIndex(Ops.IntToDouble op)
op - the op
public ParallelDoubleArrayWithFilter replaceWithMappedIndex(Ops.IntAndDoubleToDouble op)
op - the op
public ParallelDoubleArrayWithFilter replaceWithGeneratedValue(Ops.DoubleGenerator generator)
generator - the generator
public ParallelDoubleArrayWithFilter replaceWithValue(double value)
value - the value
public ParallelDoubleArrayWithFilter replaceWithMapping(Ops.BinaryDoubleOp combiner,
ParallelDoubleArrayWithDoubleMapping other)
op(thisElement, otherElement).
other - the other arraycombiner - the combiner
public ParallelDoubleArrayWithFilter replaceWithMapping(Ops.BinaryDoubleOp combiner,
double[] other)
op(thisElement, otherElement).
other - the other arraycombiner - the combiner
public ParallelDoubleArray allUniqueElements()
public abstract ParallelDoubleArrayWithFilter withFilter(Ops.DoublePredicate selector)
selector - the selector
public ParallelDoubleArrayWithFilter withFilter(Ops.BinaryDoublePredicate selector,
ParallelDoubleArrayWithDoubleMapping other)
selector - the selector
public abstract ParallelDoubleArrayWithFilter withIndexedFilter(Ops.IntAndDoublePredicate selector)
selector - the selector
public boolean hasAllEqualElements(ParallelDoubleArrayWithDoubleMapping other)
other - the other array
final void leafTransfer(int lo,
int hi,
double[] dest,
int offset)
leafTransfer in class AbstractParallelAnyArray
final void leafTransferByIndex(int[] indices,
int loIdx,
int hiIdx,
double[] dest,
int offset)
leafTransferByIndex in class AbstractParallelAnyArrayfinal double dget(int i)
dget in class AbstractParallelAnyArray
|
Copyright © 2008–2013 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||