5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
31 |
|
* @param op the op |
32 |
|
* @return this (to simplify use in expressions) |
33 |
|
*/ |
34 |
< |
public ParallelLongArrayWithFilter replaceWithMapping(LongOp op) { |
34 |
> |
public ParallelLongArrayWithFilter replaceWithMapping(LongOp op) { |
35 |
|
ex.invoke(new PAS.FJLTransform |
36 |
|
(this, origin, fence, null, op)); |
37 |
|
return this; |
39 |
|
|
40 |
|
/** |
41 |
|
* Replaces elements with the results of applying the given |
42 |
< |
* op to their indices |
42 |
> |
* op to their indices. |
43 |
|
* @param op the op |
44 |
|
* @return this (to simplify use in expressions) |
45 |
|
*/ |
49 |
|
return this; |
50 |
|
} |
51 |
|
|
52 |
< |
/** |
53 |
< |
* Replaces elements with the results of applying the given |
54 |
< |
* mapping to each index and current element value |
55 |
< |
* @param op the op |
52 |
> |
/** |
53 |
> |
* Replaces elements with the results of applying the given |
54 |
> |
* mapping to each index and current element value. |
55 |
> |
* @param op the op |
56 |
|
* @return this (to simplify use in expressions) |
57 |
< |
*/ |
58 |
< |
public ParallelLongArrayWithFilter replaceWithMappedIndex(IntAndLongToLong op) { |
57 |
> |
*/ |
58 |
> |
public ParallelLongArrayWithFilter replaceWithMappedIndex(IntAndLongToLong op) { |
59 |
|
ex.invoke(new PAS.FJLBinaryIndexMap |
60 |
|
(this, origin, fence, null, op)); |
61 |
|
return this; |
86 |
|
|
87 |
|
/** |
88 |
|
* Replaces elements with results of applying |
89 |
< |
* <tt>op(thisElement, otherElement)</tt> |
89 |
> |
* {@code op(thisElement, otherElement)}. |
90 |
|
* @param other the other array |
91 |
|
* @param combiner the combiner |
92 |
|
* @return this (to simplify use in expressions) |
101 |
|
|
102 |
|
/** |
103 |
|
* Replaces elements with results of applying |
104 |
< |
* <tt>op(thisElement, otherElement)</tt> |
104 |
> |
* {@code op(thisElement, otherElement)}. |
105 |
|
* @param other the other array |
106 |
|
* @param combiner the combiner |
107 |
|
* @return this (to simplify use in expressions) |
133 |
|
/** |
134 |
|
* Returns an operation prefix that causes a method to operate |
135 |
|
* only on elements for which the current selector (if |
136 |
< |
* present) and the given selector returns true |
136 |
> |
* present) and the given selector returns true. |
137 |
|
* @param selector the selector |
138 |
|
* @return operation prefix |
139 |
|
*/ |
142 |
|
/** |
143 |
|
* Returns an operation prefix that causes a method to operate |
144 |
|
* only on elements for which the current selector (if |
145 |
< |
* present) and the given binary selector returns true |
145 |
> |
* present) and the given binary selector returns true. |
146 |
|
* @param selector the selector |
147 |
|
* @return operation prefix |
148 |
|
*/ |
155 |
|
/** |
156 |
|
* Returns an operation prefix that causes a method to operate |
157 |
|
* only on elements for which the current selector (if |
158 |
< |
* present) and the given indexed selector returns true |
158 |
> |
* present) and the given indexed selector returns true. |
159 |
|
* @param selector the selector |
160 |
|
* @return operation prefix |
161 |
|
*/ |