101 |
|
|
102 |
|
/** |
103 |
|
* Creates a new ParallelLongArray using the given executor and |
104 |
< |
* an array of the given size |
104 |
> |
* an array of the given size. |
105 |
|
* @param size the array size |
106 |
|
* @param executor the executor |
107 |
|
*/ |
194 |
|
} |
195 |
|
|
196 |
|
/** |
197 |
< |
* Returns the executor used for computations |
197 |
> |
* Returns the executor used for computations. |
198 |
|
* @return the executor |
199 |
|
*/ |
200 |
|
public ForkJoinPool getExecutor() { return ex; } |
201 |
|
|
202 |
|
/** |
203 |
< |
* Applies the given procedure to elements |
203 |
> |
* Applies the given procedure to elements. |
204 |
|
* @param procedure the procedure |
205 |
|
*/ |
206 |
|
public void apply(LongProcedure procedure) { |
208 |
|
} |
209 |
|
|
210 |
|
/** |
211 |
< |
* Returns reduction of elements |
211 |
> |
* Returns reduction of elements. |
212 |
|
* @param reducer the reducer |
213 |
|
* @param base the result for an empty array |
214 |
|
* @return reduction |
218 |
|
} |
219 |
|
|
220 |
|
/** |
221 |
< |
* Returns a new ParallelLongArray holding all elements |
221 |
> |
* Returns a new ParallelLongArray holding all elements. |
222 |
|
* @return a new ParallelLongArray holding all elements |
223 |
|
*/ |
224 |
|
public ParallelLongArray all() { |
249 |
|
|
250 |
|
/** |
251 |
|
* Replaces elements with the results of applying the given |
252 |
< |
* mapping to each index and current element value |
252 |
> |
* mapping to each index and current element value. |
253 |
|
* @param op the op |
254 |
|
* @return this (to simplify use in expressions) |
255 |
|
*/ |
262 |
|
* Replaces elements with the results of applying the given |
263 |
|
* generator. For example, to fill the array with uniform random |
264 |
|
* values, use |
265 |
< |
* <tt>replaceWithGeneratedValue(Ops.longRandom())</tt> |
265 |
> |
* <tt>replaceWithGeneratedValue(Ops.longRandom())</tt>. |
266 |
|
* @param generator the generator |
267 |
|
* @return this (to simplify use in expressions) |
268 |
|
*/ |
283 |
|
|
284 |
|
/** |
285 |
|
* Replaces elements with results of applying |
286 |
< |
* <tt>op(thisElement, otherElement)</tt> |
286 |
> |
* <tt>op(thisElement, otherElement)</tt>. |
287 |
|
* @param other the other array |
288 |
|
* @param combiner the combiner |
289 |
|
* @return this (to simplify use in expressions) |
297 |
|
|
298 |
|
/** |
299 |
|
* Replaces elements with results of applying |
300 |
< |
* <tt>op(thisElement, otherElement)</tt> |
300 |
> |
* <tt>op(thisElement, otherElement)</tt>. |
301 |
|
* @param other the other array |
302 |
|
* @param combiner the combiner |
303 |
|
* @return this (to simplify use in expressions) |
312 |
|
|
313 |
|
/** |
314 |
|
* Returns the index of some element equal to given target, or -1 |
315 |
< |
* if not present |
315 |
> |
* if not present. |
316 |
|
* @param target the element to search for |
317 |
|
* @return the index or -1 if not present |
318 |
|
*/ |