static class AbstractParallelAnyArray.DUPap extends ParallelDoubleArrayWithBounds
AbstractParallelAnyArray.AndPredicate<T>, AbstractParallelAnyArray.DDCPap, AbstractParallelAnyArray.DDMPap, AbstractParallelAnyArray.DFDCPap, AbstractParallelAnyArray.DFDMPap, AbstractParallelAnyArray.DFLCPap, AbstractParallelAnyArray.DFLMPap, AbstractParallelAnyArray.DFOCPap<U>, AbstractParallelAnyArray.DFOMPap<U>, AbstractParallelAnyArray.DFPap, AbstractParallelAnyArray.DLCPap, AbstractParallelAnyArray.DLMPap, AbstractParallelAnyArray.DOCPap<U>, AbstractParallelAnyArray.DOMPap<U>, AbstractParallelAnyArray.DPap, AbstractParallelAnyArray.DRDCPap, AbstractParallelAnyArray.DRDMPap, AbstractParallelAnyArray.DRLCPap, AbstractParallelAnyArray.DRLMPap, AbstractParallelAnyArray.DROCPap<U>, AbstractParallelAnyArray.DROMPap<U>, AbstractParallelAnyArray.DRPap, AbstractParallelAnyArray.DUDCPap, AbstractParallelAnyArray.DUDMPap, AbstractParallelAnyArray.DULCPap, AbstractParallelAnyArray.DULMPap, AbstractParallelAnyArray.DUOCPap<U>, AbstractParallelAnyArray.DUOMPap<U>, AbstractParallelAnyArray.DUPap, AbstractParallelAnyArray.FilteredAsDoubleIterator, AbstractParallelAnyArray.FilteredAsLongIterator, AbstractParallelAnyArray.FilteredIterator<U>, AbstractParallelAnyArray.LDCPap, AbstractParallelAnyArray.LDMPap, AbstractParallelAnyArray.LFDCPap, AbstractParallelAnyArray.LFDMPap, AbstractParallelAnyArray.LFLCPap, AbstractParallelAnyArray.LFLMPap, AbstractParallelAnyArray.LFOCPap<U>, AbstractParallelAnyArray.LFOMPap<U>, AbstractParallelAnyArray.LFPap, AbstractParallelAnyArray.LLCPap, AbstractParallelAnyArray.LLMPap, AbstractParallelAnyArray.LOCPap<U>, AbstractParallelAnyArray.LOMPap<U>, AbstractParallelAnyArray.LPap, AbstractParallelAnyArray.LRDCPap, AbstractParallelAnyArray.LRDMPap, AbstractParallelAnyArray.LRLCPap, AbstractParallelAnyArray.LRLMPap, AbstractParallelAnyArray.LROCPap<U>, AbstractParallelAnyArray.LROMPap<U>, AbstractParallelAnyArray.LRPap, AbstractParallelAnyArray.LUDCPap, AbstractParallelAnyArray.LUDMPap, AbstractParallelAnyArray.LULCPap, AbstractParallelAnyArray.LULMPap, AbstractParallelAnyArray.LUOCPap<U>, AbstractParallelAnyArray.LUOMPap<U>, AbstractParallelAnyArray.LUPap, AbstractParallelAnyArray.ODCPap<T>, AbstractParallelAnyArray.ODMPap<T>, AbstractParallelAnyArray.OFDCPap<T>, AbstractParallelAnyArray.OFDMPap<T>, AbstractParallelAnyArray.OFLCPap<T>, AbstractParallelAnyArray.OFLMPap<T>, AbstractParallelAnyArray.OFOCPap<T,U>, AbstractParallelAnyArray.OFOMPap<T,U>, AbstractParallelAnyArray.OFPap<T>, AbstractParallelAnyArray.OLCPap<T>, AbstractParallelAnyArray.OLMPap<T>, AbstractParallelAnyArray.OOCPap<T,U>, AbstractParallelAnyArray.OOMPap<T,U>, AbstractParallelAnyArray.OPap<T>, AbstractParallelAnyArray.ORDCPap<T>, AbstractParallelAnyArray.ORDMPap<T>, AbstractParallelAnyArray.ORLCPap<T>, AbstractParallelAnyArray.ORLMPap<T>, AbstractParallelAnyArray.OROCPap<T,U>, AbstractParallelAnyArray.OROMPap<T,U>, AbstractParallelAnyArray.ORPap<T>, AbstractParallelAnyArray.OUDCPap<T>, AbstractParallelAnyArray.OUDMPap<T>, AbstractParallelAnyArray.OULCPap<T>, AbstractParallelAnyArray.OULMPap<T>, AbstractParallelAnyArray.OUOCPap<T,U>, AbstractParallelAnyArray.OUOMPap<T,U>, AbstractParallelAnyArray.OUPap<T>, AbstractParallelAnyArray.Sequentially<U>, AbstractParallelAnyArray.SequentiallyAsDouble, AbstractParallelAnyArray.SequentiallyAsLong, AbstractParallelAnyArray.UnfilteredAsDoubleIterator, AbstractParallelAnyArray.UnfilteredAsLongIterator, AbstractParallelAnyArray.UnfilteredIterator<U>arrayex, fence, origin, threshold| Constructor and Description |
|---|
AbstractParallelAnyArray.DUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
double[] array) |
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(double target)
Assuming this array is sorted, returns the index of an
element equal to given target, or -1 if not present.
|
int |
binarySearch(double target,
Ops.DoubleComparator comparator)
Assuming this array is sorted with respect to the given
comparator, returns the index of an element equal to given
target, or -1 if not present.
|
ParallelDoubleArrayWithBounds |
cumulate(Ops.DoubleReducer reducer,
double base)
Replaces each element with the running cumulation of applying
the given reducer.
|
ParallelDoubleArrayWithBounds |
cumulateSum()
Replaces each element with the running sum.
|
int |
indexOf(double target)
Returns the index of some element equal to given target,
or -1 if not present.
|
(package private) void |
leafApply(int lo,
int hi,
Ops.DoubleProcedure procedure) |
(package private) void |
leafBinaryIndexMap(int l,
int h,
Ops.IntAndDoubleToDouble op) |
(package private) void |
leafCombineInPlace(int l,
int h,
double[] other,
int otherOffset,
Ops.BinaryDoubleOp combiner) |
(package private) void |
leafCombineInPlace(int l,
int h,
ParallelDoubleArrayWithDoubleMapping other,
int otherOffset,
Ops.BinaryDoubleOp combiner) |
(package private) void |
leafFill(int l,
int h,
double value) |
(package private) void |
leafGenerate(int l,
int h,
Ops.DoubleGenerator generator) |
(package private) void |
leafIndexMap(int l,
int h,
Ops.IntToDouble op) |
(package private) double |
leafReduce(int lo,
int hi,
Ops.DoubleReducer reducer,
double base) |
(package private) void |
leafTransform(int l,
int h,
Ops.DoubleOp op) |
double |
precumulate(Ops.DoubleReducer 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.
|
ParallelDoubleArrayWithBounds |
sort()
Sorts the elements, assuming all elements are
Comparable.
|
ParallelDoubleArrayWithBounds |
sort(Ops.DoubleComparator cmp)
Sorts the elements.
|
ParallelDoubleArrayWithBounds |
withBounds(int lo,
int hi)
Returns an operation prefix that causes a method to operate
only on the elements of the array between firstIndex
(inclusive) and upperBound (exclusive).
|
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.
|
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.
|
ParallelDoubleArrayWithDoubleMapping |
withIndexedMapping(Ops.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(Ops.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.
|
<V> ParallelDoubleArrayWithMapping<V> |
withIndexedMapping(Ops.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 |
withMapping(Ops.DoubleOp op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
ParallelDoubleArrayWithLongMapping |
withMapping(Ops.DoubleToLong op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
<U> ParallelDoubleArrayWithMapping<U> |
withMapping(Ops.DoubleToObject<? extends U> op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
allUniqueElements, dget, hasAllEqualElements, leafTransfer, leafTransferByIndex, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilterall, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMappingdgetArray, leafMoveByIndex, leafMoveSelected, lget, ogetallDoubles, allLongs, allObjects, anyIndex, boundsCheck, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, computeThreshold, getThreshold, hasFilter, hasMap, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedSelector, indexedSelector, indexedSelector, isEmpty, isSelected, leafApply, leafApply, leafBinaryIndexMap, leafBinaryIndexMap, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafFill, leafFill, leafGenerate, leafGenerate, leafIndexMap, leafIndexMap, leafIndexSelected, leafReduce, leafReduce, leafTransfer, leafTransfer, leafTransferByIndex, leafTransferByIndex, leafTransform, leafTransform, lgetArray, ogetArray, sizeAbstractParallelAnyArray.DUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
double[] array)
public ParallelDoubleArrayWithBounds withBounds(int lo, int hi)
ParallelDoubleArrayWithBoundspa.withBounds(2, 8).withBounds(3, 5) indexes the
5th (= 2+3) and 6th elements of pa. However, indices
returned by methods such as indexOf are
with respect to the underlying ParallelDoubleArray.withBounds in class ParallelDoubleArrayWithBoundslo - the lower bound (inclusive)hi - the upper bound (exclusive)public ParallelDoubleArrayWithFilter withFilter(Ops.DoublePredicate selector)
ParallelDoubleArrayWithFilterwithFilter in class ParallelDoubleArrayWithFilterselector - the selectorpublic ParallelDoubleArrayWithFilter withIndexedFilter(Ops.IntAndDoublePredicate selector)
ParallelDoubleArrayWithFilterwithIndexedFilter in class ParallelDoubleArrayWithFilterselector - the selectorpublic <U> ParallelDoubleArrayWithMapping<U> withMapping(Ops.DoubleToObject<? extends U> op)
ParallelDoubleArrayWithDoubleMappingwithMapping in class ParallelDoubleArrayWithDoubleMappingop - the oppublic ParallelDoubleArrayWithDoubleMapping withMapping(Ops.DoubleOp op)
ParallelDoubleArrayWithDoubleMappingwithMapping in class ParallelDoubleArrayWithDoubleMappingop - the oppublic ParallelDoubleArrayWithLongMapping withMapping(Ops.DoubleToLong op)
ParallelDoubleArrayWithDoubleMappingwithMapping in class ParallelDoubleArrayWithDoubleMappingop - the oppublic <V> ParallelDoubleArrayWithMapping<V> withIndexedMapping(Ops.IntAndDoubleToObject<? extends V> mapper)
ParallelDoubleArrayWithDoubleMappingwithIndexedMapping in class ParallelDoubleArrayWithDoubleMappingmapper - the mapperpublic ParallelDoubleArrayWithDoubleMapping withIndexedMapping(Ops.IntAndDoubleToDouble mapper)
ParallelDoubleArrayWithDoubleMappingwithIndexedMapping in class ParallelDoubleArrayWithDoubleMappingmapper - the mapperpublic ParallelDoubleArrayWithLongMapping withIndexedMapping(Ops.IntAndDoubleToLong mapper)
ParallelDoubleArrayWithDoubleMappingwithIndexedMapping in class ParallelDoubleArrayWithDoubleMappingmapper - the mapperpublic int indexOf(double target)
ParallelDoubleArrayWithBoundsindexOf in class ParallelDoubleArrayWithBoundstarget - the element to search forpublic int binarySearch(double target)
ParallelDoubleArrayWithBoundsbinarySearch in class ParallelDoubleArrayWithBoundstarget - the element to search forpublic int binarySearch(double target,
Ops.DoubleComparator comparator)
ParallelDoubleArrayWithBoundsbinarySearch in class ParallelDoubleArrayWithBoundstarget - the element to search forcomparator - the comparatorpublic ParallelDoubleArrayWithBounds cumulate(Ops.DoubleReducer reducer, double base)
ParallelDoubleArrayWithBoundscumulate in class ParallelDoubleArrayWithBoundsreducer - the reducerbase - the result for an empty arraypublic ParallelDoubleArrayWithBounds cumulateSum()
ParallelDoubleArrayWithBoundscumulateSum in class ParallelDoubleArrayWithBoundspublic double precumulate(Ops.DoubleReducer reducer, double base)
ParallelDoubleArrayWithBoundsprecumulate in class ParallelDoubleArrayWithBoundsreducer - the reducerbase - the result for an empty arraypublic double precumulateSum()
ParallelDoubleArrayWithBoundsprecumulateSum in class ParallelDoubleArrayWithBoundspublic ParallelDoubleArrayWithBounds sort(Ops.DoubleComparator cmp)
ParallelDoubleArrayWithBoundssort in class ParallelDoubleArrayWithBoundscmp - the comparator to usepublic ParallelDoubleArrayWithBounds sort()
ParallelDoubleArrayWithBoundssort in class ParallelDoubleArrayWithBoundsfinal void leafApply(int lo,
int hi,
Ops.DoubleProcedure procedure)
leafApply in class AbstractParallelAnyArrayfinal double leafReduce(int lo,
int hi,
Ops.DoubleReducer reducer,
double base)
leafReduce in class AbstractParallelAnyArrayfinal void leafTransform(int l,
int h,
Ops.DoubleOp op)
leafTransform in class AbstractParallelAnyArrayfinal void leafIndexMap(int l,
int h,
Ops.IntToDouble op)
leafIndexMap in class AbstractParallelAnyArrayfinal void leafBinaryIndexMap(int l,
int h,
Ops.IntAndDoubleToDouble op)
leafBinaryIndexMap in class AbstractParallelAnyArrayfinal void leafGenerate(int l,
int h,
Ops.DoubleGenerator generator)
leafGenerate in class AbstractParallelAnyArrayfinal void leafFill(int l,
int h,
double value)
leafFill in class AbstractParallelAnyArrayfinal void leafCombineInPlace(int l,
int h,
double[] other,
int otherOffset,
Ops.BinaryDoubleOp combiner)
leafCombineInPlace in class AbstractParallelAnyArrayfinal void leafCombineInPlace(int l,
int h,
ParallelDoubleArrayWithDoubleMapping other,
int otherOffset,
Ops.BinaryDoubleOp combiner)
leafCombineInPlace in class AbstractParallelAnyArray