static class AbstractParallelAnyArray.LUPap extends ParallelLongArrayWithBounds
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>
array
ex, fence, origin, threshold
Constructor and Description |
---|
AbstractParallelAnyArray.LUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array) |
Modifier and Type | Method and Description |
---|---|
int |
binarySearch(long target)
Assuming this array is sorted, returns the index of an
element equal to given target, or -1 if not present.
|
int |
binarySearch(long target,
Ops.LongComparator 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.
|
ParallelLongArrayWithBounds |
cumulate(Ops.LongReducer reducer,
long base)
Replaces each element with the running cumulation of applying
the given reducer.
|
ParallelLongArrayWithBounds |
cumulateSum()
Replaces each element with the running sum.
|
int |
indexOf(long 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.LongProcedure procedure) |
(package private) void |
leafBinaryIndexMap(int l,
int h,
Ops.IntAndLongToLong op) |
(package private) void |
leafCombineInPlace(int l,
int h,
long[] other,
int otherOffset,
Ops.BinaryLongOp combiner) |
(package private) void |
leafCombineInPlace(int l,
int h,
ParallelLongArrayWithLongMapping other,
int otherOffset,
Ops.BinaryLongOp combiner) |
(package private) void |
leafFill(int l,
int h,
long value) |
(package private) void |
leafGenerate(int l,
int h,
Ops.LongGenerator generator) |
(package private) void |
leafIndexMap(int l,
int h,
Ops.IntToLong op) |
(package private) long |
leafReduce(int lo,
int hi,
Ops.LongReducer reducer,
long base) |
(package private) void |
leafTransform(int l,
int h,
Ops.LongOp op) |
long |
precumulate(Ops.LongReducer reducer,
long base)
Replaces each element with the cumulation of applying the given
reducer to all previous values, and returns the total
reduction.
|
long |
precumulateSum()
Replaces each element with its prefix sum.
|
ParallelLongArrayWithBounds |
sort()
Sorts the elements, assuming all elements are
Comparable.
|
ParallelLongArrayWithBounds |
sort(Ops.LongComparator cmp)
Sorts the elements.
|
ParallelLongArrayWithBounds |
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).
|
ParallelLongArrayWithFilter |
withFilter(Ops.LongPredicate 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.
|
ParallelLongArrayWithFilter |
withIndexedFilter(Ops.IntAndLongPredicate 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.
|
ParallelLongArrayWithDoubleMapping |
withIndexedMapping(Ops.IntAndLongToDouble 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.
|
ParallelLongArrayWithLongMapping |
withIndexedMapping(Ops.IntAndLongToLong 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> ParallelLongArrayWithMapping<V> |
withIndexedMapping(Ops.IntAndLongToObject<? 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.
|
ParallelLongArrayWithLongMapping |
withMapping(Ops.LongOp op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
ParallelLongArrayWithDoubleMapping |
withMapping(Ops.LongToDouble op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
<U> ParallelLongArrayWithMapping<U> |
withMapping(Ops.LongToObject<? extends U> op)
Returns an operation prefix that causes a method to operate
on mapped elements of the array using the given op.
|
allUniqueElements, hasAllEqualElements, leafTransfer, leafTransferByIndex, lget, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilter
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping
dget, leafMoveByIndex, leafMoveSelected, lgetArray, oget
allDoubles, 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, dgetArray, 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, ogetArray, size
AbstractParallelAnyArray.LUPap(jsr166y.ForkJoinPool ex, int origin, int fence, long[] array)
public ParallelLongArrayWithBounds withBounds(int lo, int hi)
ParallelLongArrayWithBounds
pa.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 ParallelLongArray.withBounds
in class ParallelLongArrayWithBounds
lo
- the lower bound (inclusive)hi
- the upper bound (exclusive)public ParallelLongArrayWithFilter withFilter(Ops.LongPredicate selector)
ParallelLongArrayWithFilter
withFilter
in class ParallelLongArrayWithFilter
selector
- the selectorpublic ParallelLongArrayWithFilter withIndexedFilter(Ops.IntAndLongPredicate selector)
ParallelLongArrayWithFilter
withIndexedFilter
in class ParallelLongArrayWithFilter
selector
- the selectorpublic <U> ParallelLongArrayWithMapping<U> withMapping(Ops.LongToObject<? extends U> op)
ParallelLongArrayWithLongMapping
withMapping
in class ParallelLongArrayWithLongMapping
op
- the oppublic ParallelLongArrayWithLongMapping withMapping(Ops.LongOp op)
ParallelLongArrayWithLongMapping
withMapping
in class ParallelLongArrayWithLongMapping
op
- the oppublic ParallelLongArrayWithDoubleMapping withMapping(Ops.LongToDouble op)
ParallelLongArrayWithLongMapping
withMapping
in class ParallelLongArrayWithLongMapping
op
- the oppublic <V> ParallelLongArrayWithMapping<V> withIndexedMapping(Ops.IntAndLongToObject<? extends V> mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping
in class ParallelLongArrayWithLongMapping
mapper
- the mapperpublic ParallelLongArrayWithDoubleMapping withIndexedMapping(Ops.IntAndLongToDouble mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping
in class ParallelLongArrayWithLongMapping
mapper
- the mapperpublic ParallelLongArrayWithLongMapping withIndexedMapping(Ops.IntAndLongToLong mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping
in class ParallelLongArrayWithLongMapping
mapper
- the mapperpublic int indexOf(long target)
ParallelLongArrayWithBounds
indexOf
in class ParallelLongArrayWithBounds
target
- the element to search forpublic int binarySearch(long target)
ParallelLongArrayWithBounds
binarySearch
in class ParallelLongArrayWithBounds
target
- the element to search forpublic int binarySearch(long target, Ops.LongComparator comparator)
ParallelLongArrayWithBounds
binarySearch
in class ParallelLongArrayWithBounds
target
- the element to search forcomparator
- the comparatorpublic ParallelLongArrayWithBounds cumulate(Ops.LongReducer reducer, long base)
ParallelLongArrayWithBounds
cumulate
in class ParallelLongArrayWithBounds
reducer
- the reducerbase
- the result for an empty arraypublic ParallelLongArrayWithBounds cumulateSum()
ParallelLongArrayWithBounds
cumulateSum
in class ParallelLongArrayWithBounds
public long precumulate(Ops.LongReducer reducer, long base)
ParallelLongArrayWithBounds
precumulate
in class ParallelLongArrayWithBounds
reducer
- the reducerbase
- the result for an empty arraypublic long precumulateSum()
ParallelLongArrayWithBounds
precumulateSum
in class ParallelLongArrayWithBounds
public ParallelLongArrayWithBounds sort(Ops.LongComparator cmp)
ParallelLongArrayWithBounds
sort
in class ParallelLongArrayWithBounds
cmp
- the comparator to usepublic ParallelLongArrayWithBounds sort()
ParallelLongArrayWithBounds
sort
in class ParallelLongArrayWithBounds
final void leafApply(int lo, int hi, Ops.LongProcedure procedure)
leafApply
in class AbstractParallelAnyArray
final long leafReduce(int lo, int hi, Ops.LongReducer reducer, long base)
leafReduce
in class AbstractParallelAnyArray
final void leafTransform(int l, int h, Ops.LongOp op)
leafTransform
in class AbstractParallelAnyArray
final void leafIndexMap(int l, int h, Ops.IntToLong op)
leafIndexMap
in class AbstractParallelAnyArray
final void leafBinaryIndexMap(int l, int h, Ops.IntAndLongToLong op)
leafBinaryIndexMap
in class AbstractParallelAnyArray
final void leafGenerate(int l, int h, Ops.LongGenerator generator)
leafGenerate
in class AbstractParallelAnyArray
final void leafFill(int l, int h, long value)
leafFill
in class AbstractParallelAnyArray
final void leafCombineInPlace(int l, int h, long[] other, int otherOffset, Ops.BinaryLongOp combiner)
leafCombineInPlace
in class AbstractParallelAnyArray
final void leafCombineInPlace(int l, int h, ParallelLongArrayWithLongMapping other, int otherOffset, Ops.BinaryLongOp combiner)
leafCombineInPlace
in class AbstractParallelAnyArray