5 |
|
*/ |
6 |
|
|
7 |
|
package extra166y; |
8 |
+ |
|
9 |
|
import jsr166y.*; |
10 |
|
import static extra166y.Ops.*; |
11 |
|
import java.util.*; |
30 |
|
* @param op the op |
31 |
|
* @return this (to simplify use in expressions) |
32 |
|
*/ |
33 |
< |
public ParallelDoubleArrayWithFilter replaceWithMapping(DoubleOp op) { |
33 |
> |
public ParallelDoubleArrayWithFilter replaceWithMapping(DoubleOp op) { |
34 |
|
ex.invoke(new PAS.FJDTransform(this, origin, |
35 |
|
fence, null, op)); |
36 |
|
return this; |
38 |
|
|
39 |
|
/** |
40 |
|
* Replaces elements with the results of applying the given |
41 |
< |
* op to their indices |
41 |
> |
* op to their indices. |
42 |
|
* @param op the op |
43 |
|
* @return this (to simplify use in expressions) |
44 |
|
*/ |
50 |
|
|
51 |
|
/** |
52 |
|
* Replaces elements with the results of applying the given |
53 |
< |
* mapping to each index and current element value |
53 |
> |
* mapping to each index and current element value. |
54 |
|
* @param op the op |
55 |
|
* @return this (to simplify use in expressions) |
56 |
|
*/ |
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
< |
* Replaces elements with results of applying the given |
64 |
< |
* generator. |
64 |
> |
* Replaces elements with results of applying the given generator. |
65 |
|
* @param generator the generator |
66 |
|
* @return this (to simplify use in expressions) |
67 |
|
*/ |
84 |
|
|
85 |
|
/** |
86 |
|
* Replaces elements with results of applying |
87 |
< |
* <tt>op(thisElement, otherElement)</tt> |
87 |
> |
* {@code op(thisElement, otherElement)}. |
88 |
|
* @param other the other array |
89 |
|
* @param combiner the combiner |
90 |
|
* @return this (to simplify use in expressions) |
99 |
|
|
100 |
|
/** |
101 |
|
* Replaces elements with results of applying |
102 |
< |
* <tt>op(thisElement, otherElement)</tt> |
102 |
> |
* {@code op(thisElement, otherElement)}. |
103 |
|
* @param other the other array |
104 |
|
* @param combiner the combiner |
105 |
|
* @return this (to simplify use in expressions) |
132 |
|
/** |
133 |
|
* Returns an operation prefix that causes a method to operate |
134 |
|
* only on elements for which the current selector (if |
135 |
< |
* present) and the given selector returns true |
135 |
> |
* present) and the given selector returns true. |
136 |
|
* @param selector the selector |
137 |
|
* @return operation prefix |
138 |
|
*/ |
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 |
|
*/ |
190 |
|
final double dget(int i) { return this.array[i]; } |
191 |
|
|
192 |
|
} |
193 |
– |
|