public abstract class ParallelDoubleArrayWithFilter extends ParallelDoubleArrayWithDoubleMapping
Modifier and Type | Method and Description |
---|---|
ParallelDoubleArray |
allUniqueElements()
Returns a new ParallelDoubleArray containing only unique
elements (that is, without any duplicates).
|
boolean |
hasAllEqualElements(ParallelDoubleArrayWithDoubleMapping other)
Returns true if all elements at the same relative positions
of this and other array are equal.
|
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
|
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
anyIndex, isEmpty, size
public ParallelDoubleArrayWithFilter replaceWithMapping(Ops.DoubleOp op)
op
- the oppublic ParallelDoubleArrayWithFilter replaceWithMappedIndex(Ops.IntToDouble op)
op
- the oppublic ParallelDoubleArrayWithFilter replaceWithMappedIndex(Ops.IntAndDoubleToDouble op)
op
- the oppublic ParallelDoubleArrayWithFilter replaceWithGeneratedValue(Ops.DoubleGenerator generator)
generator
- the generatorpublic ParallelDoubleArrayWithFilter replaceWithValue(double value)
value
- the valuepublic ParallelDoubleArrayWithFilter replaceWithMapping(Ops.BinaryDoubleOp combiner, ParallelDoubleArrayWithDoubleMapping other)
other
- the other arraycombiner
- the combinerpublic ParallelDoubleArrayWithFilter replaceWithMapping(Ops.BinaryDoubleOp combiner, double[] other)
other
- the other arraycombiner
- the combinerpublic ParallelDoubleArray allUniqueElements()
public abstract ParallelDoubleArrayWithFilter withFilter(Ops.DoublePredicate selector)
selector
- the selectorpublic ParallelDoubleArrayWithFilter withFilter(Ops.BinaryDoublePredicate selector, ParallelDoubleArrayWithDoubleMapping other)
selector
- the selectorpublic abstract ParallelDoubleArrayWithFilter withIndexedFilter(Ops.IntAndDoublePredicate selector)
selector
- the selectorpublic boolean hasAllEqualElements(ParallelDoubleArrayWithDoubleMapping other)
other
- the other array