|
||||||||||
| 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.LPap
groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping
groovyx.gpars.extra166y.ParallelLongArrayWithFilter
groovyx.gpars.extra166y.ParallelLongArrayWithBounds
groovyx.gpars.extra166y.AbstractParallelAnyArray.LUPap
static class AbstractParallelAnyArray.LUPap
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap |
|---|
array |
| Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray |
|---|
ex, fence, origin, threshold |
| Constructor Summary | |
|---|---|
AbstractParallelAnyArray.LUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array)
|
|
| Method Summary | ||
|---|---|---|
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. |
|
|
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. |
|
|
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. |
|
| Methods inherited from class groovyx.gpars.extra166y.ParallelLongArrayWithFilter |
|---|
allUniqueElements, hasAllEqualElements, leafTransfer, leafTransferByIndex, lget, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilter |
| Methods inherited from class groovyx.gpars.extra166y.ParallelLongArrayWithLongMapping |
|---|
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping |
| Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.LPap |
|---|
dget, leafMoveByIndex, leafMoveSelected, lgetArray, oget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
AbstractParallelAnyArray.LUPap(jsr166y.ForkJoinPool ex,
int origin,
int fence,
long[] array)
| Method Detail |
|---|
public ParallelLongArrayWithBounds withBounds(int lo,
int hi)
ParallelLongArrayWithBoundspa.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 ParallelLongArrayWithBoundslo - the lower bound (inclusive)hi - the upper bound (exclusive)
public ParallelLongArrayWithFilter withFilter(Ops.LongPredicate selector)
ParallelLongArrayWithFilter
withFilter in class ParallelLongArrayWithFilterselector - the selector
public ParallelLongArrayWithFilter withIndexedFilter(Ops.IntAndLongPredicate selector)
ParallelLongArrayWithFilter
withIndexedFilter in class ParallelLongArrayWithFilterselector - the selector
public <U> ParallelLongArrayWithMapping<U> withMapping(Ops.LongToObject<? extends U> op)
ParallelLongArrayWithLongMapping
withMapping in class ParallelLongArrayWithLongMappingop - the op
public ParallelLongArrayWithLongMapping withMapping(Ops.LongOp op)
ParallelLongArrayWithLongMapping
withMapping in class ParallelLongArrayWithLongMappingop - the op
public ParallelLongArrayWithDoubleMapping withMapping(Ops.LongToDouble op)
ParallelLongArrayWithLongMapping
withMapping in class ParallelLongArrayWithLongMappingop - the op
public <V> ParallelLongArrayWithMapping<V> withIndexedMapping(Ops.IntAndLongToObject<? extends V> mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping in class ParallelLongArrayWithLongMappingmapper - the mapper
public ParallelLongArrayWithDoubleMapping withIndexedMapping(Ops.IntAndLongToDouble mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping in class ParallelLongArrayWithLongMappingmapper - the mapper
public ParallelLongArrayWithLongMapping withIndexedMapping(Ops.IntAndLongToLong mapper)
ParallelLongArrayWithLongMapping
withIndexedMapping in class ParallelLongArrayWithLongMappingmapper - the mapper
public int indexOf(long target)
ParallelLongArrayWithBounds
indexOf in class ParallelLongArrayWithBoundstarget - the element to search for
public int binarySearch(long target)
ParallelLongArrayWithBounds
binarySearch in class ParallelLongArrayWithBoundstarget - the element to search for
public int binarySearch(long target,
Ops.LongComparator comparator)
ParallelLongArrayWithBounds
binarySearch in class ParallelLongArrayWithBoundstarget - the element to search forcomparator - the comparator
public ParallelLongArrayWithBounds cumulate(Ops.LongReducer reducer,
long base)
ParallelLongArrayWithBounds
cumulate in class ParallelLongArrayWithBoundsreducer - the reducerbase - the result for an empty array
public ParallelLongArrayWithBounds cumulateSum()
ParallelLongArrayWithBounds
cumulateSum in class ParallelLongArrayWithBounds
public long precumulate(Ops.LongReducer reducer,
long base)
ParallelLongArrayWithBounds
precumulate in class ParallelLongArrayWithBoundsreducer - the reducerbase - the result for an empty array
public long precumulateSum()
ParallelLongArrayWithBounds
precumulateSum in class ParallelLongArrayWithBoundspublic ParallelLongArrayWithBounds sort(Ops.LongComparator cmp)
ParallelLongArrayWithBounds
sort in class ParallelLongArrayWithBoundscmp - the comparator to use
public 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
|
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 | |||||||||