ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/extra166y/ParallelDoubleArrayWithDoubleMapping.java
(Generate patch)

Comparing jsr166/src/extra166y/ParallelDoubleArrayWithDoubleMapping.java (file contents):
Revision 1.3 by jsr166, Wed Jul 4 20:13:53 2012 UTC vs.
Revision 1.4 by jsr166, Sat Dec 29 23:55:19 2012 UTC

# Line 24 | Line 24 | public abstract class ParallelDoubleArra
24      }
25  
26      /**
27 <     * Applies the given procedure to elements
27 >     * Applies the given procedure to elements.
28       * @param procedure the procedure
29       */
30      public void apply(DoubleProcedure procedure) {
# Line 32 | Line 32 | public abstract class ParallelDoubleArra
32      }
33  
34      /**
35 <     * Returns reduction of elements
35 >     * Returns reduction of elements.
36       * @param reducer the reducer
37       * @param base the result for an empty array
38       * @return reduction
# Line 45 | Line 45 | public abstract class ParallelDoubleArra
45      }
46  
47      /**
48 <     * Returns the minimum element, or Double.MAX_VALUE if empty
48 >     * Returns the minimum element, or Double.MAX_VALUE if empty.
49       * @return minimum element, or Double.MAX_VALUE if empty
50       */
51      public double min() {
# Line 53 | Line 53 | public abstract class ParallelDoubleArra
53      }
54  
55      /**
56 <     * Returns the minimum element, or Double.MAX_VALUE if empty
56 >     * Returns the minimum element, or Double.MAX_VALUE if empty.
57       * @param comparator the comparator
58       * @return minimum element, or Double.MAX_VALUE if empty
59       */
# Line 62 | Line 62 | public abstract class ParallelDoubleArra
62      }
63  
64      /**
65 <     * Returns the maximum element, or -Double.MAX_VALUE if empty
65 >     * Returns the maximum element, or -Double.MAX_VALUE if empty.
66       * @return maximum element, or -Double.MAX_VALUE if empty
67       */
68      public double max() {
# Line 70 | Line 70 | public abstract class ParallelDoubleArra
70      }
71  
72      /**
73 <     * Returns the maximum element, or -Double.MAX_VALUE if empty
73 >     * Returns the maximum element, or -Double.MAX_VALUE if empty.
74       * @param comparator the comparator
75       * @return maximum element, or -Double.MAX_VALUE if empty
76       */
# Line 79 | Line 79 | public abstract class ParallelDoubleArra
79      }
80  
81      /**
82 <     * Returns the sum of elements
82 >     * Returns the sum of elements.
83       * @return the sum of elements
84       */
85      public double sum() {
# Line 87 | Line 87 | public abstract class ParallelDoubleArra
87      }
88  
89      /**
90 <     * Returns summary statistics
90 >     * Returns summary statistics.
91       * @param comparator the comparator to use for
92       * locating minimum and maximum elements
93 <     * @return the summary.
93 >     * @return the summary
94       */
95      public ParallelDoubleArray.SummaryStatistics summary
96          (DoubleComparator comparator) {
# Line 101 | Line 101 | public abstract class ParallelDoubleArra
101      }
102  
103      /**
104 <     * Returns summary statistics, using natural comparator
105 <     * @return the summary.
104 >     * Returns summary statistics, using natural comparator.
105 >     * @return the summary
106       */
107      public ParallelDoubleArray.SummaryStatistics summary() {
108          return summary(CommonOps.naturalDoubleComparator());
109      }
110  
111      /**
112 <     * Returns a new ParallelDoubleArray holding elements
112 >     * Returns a new ParallelDoubleArray holding elements.
113       * @return a new ParallelDoubleArray holding elements
114       */
115      public ParallelDoubleArray all() {
# Line 150 | Line 150 | public abstract class ParallelDoubleArra
150       * @param other the other array
151       * @return operation prefix
152       * @throws IllegalArgumentException if other array is a
153 <     * filtered view (all filters must precede all mappings).
153 >     * filtered view (all filters must precede all mappings)
154       */
155      public <V,W,X> ParallelDoubleArrayWithMapping<W> withMapping
156          (DoubleAndObjectToObject<? super V, ? extends W> combiner,
# Line 167 | Line 167 | public abstract class ParallelDoubleArra
167       * @param other the other array
168       * @return operation prefix
169       * @throws IllegalArgumentException if other array is a
170 <     * filtered view (all filters must precede all mappings).
170 >     * filtered view (all filters must precede all mappings)
171       */
172      public <V> ParallelDoubleArrayWithMapping<V> withMapping
173          (DoubleAndDoubleToObject<? extends V> combiner,
# Line 184 | Line 184 | public abstract class ParallelDoubleArra
184       * @param other the other array
185       * @return operation prefix
186       * @throws IllegalArgumentException if other array is a
187 <     * filtered view (all filters must precede all mappings).
187 >     * filtered view (all filters must precede all mappings)
188       */
189      public <V> ParallelDoubleArrayWithMapping<V> withMapping
190          (DoubleAndLongToObject<? extends V> combiner,
# Line 201 | Line 201 | public abstract class ParallelDoubleArra
201       * @param other the other array
202       * @return operation prefix
203       * @throws IllegalArgumentException if other array is a
204 <     * filtered view (all filters must precede all mappings).
204 >     * filtered view (all filters must precede all mappings)
205       */
206      public <V,W> ParallelDoubleArrayWithDoubleMapping withMapping
207          (DoubleAndObjectToDouble<? super V> combiner,
# Line 218 | Line 218 | public abstract class ParallelDoubleArra
218       * @param other the other array
219       * @return operation prefix
220       * @throws IllegalArgumentException if other array is a
221 <     * filtered view (all filters must precede all mappings).
221 >     * filtered view (all filters must precede all mappings)
222       */
223      public ParallelDoubleArrayWithDoubleMapping withMapping
224          (BinaryDoubleOp combiner,
# Line 235 | Line 235 | public abstract class ParallelDoubleArra
235       * @param other the other array
236       * @return operation prefix
237       * @throws IllegalArgumentException if other array is a
238 <     * filtered view (all filters must precede all mappings).
238 >     * filtered view (all filters must precede all mappings)
239       */
240      public ParallelDoubleArrayWithDoubleMapping withMapping
241          (DoubleAndLongToDouble combiner,
# Line 252 | Line 252 | public abstract class ParallelDoubleArra
252       * @param other the other array
253       * @return operation prefix
254       * @throws IllegalArgumentException if other array is a
255 <     * filtered view (all filters must precede all mappings).
255 >     * filtered view (all filters must precede all mappings)
256       */
257      public <V,W> ParallelDoubleArrayWithLongMapping withMapping
258          (DoubleAndObjectToLong<? super V> combiner,
# Line 269 | Line 269 | public abstract class ParallelDoubleArra
269       * @param other the other array
270       * @return operation prefix
271       * @throws IllegalArgumentException if other array is a
272 <     * filtered view (all filters must precede all mappings).
272 >     * filtered view (all filters must precede all mappings)
273       */
274      public ParallelDoubleArrayWithLongMapping withMapping
275          (DoubleAndDoubleToLong combiner,
# Line 286 | Line 286 | public abstract class ParallelDoubleArra
286       * @param other the other array
287       * @return operation prefix
288       * @throws IllegalArgumentException if other array is a
289 <     * filtered view (all filters must precede all mappings).
289 >     * filtered view (all filters must precede all mappings)
290       */
291      public ParallelDoubleArrayWithLongMapping withMapping
292          (DoubleAndLongToLong combiner,
# Line 335 | Line 335 | public abstract class ParallelDoubleArra
335      /**
336       * Returns an Iterable view to sequentially step through mapped
337       * elements also obeying bound and filter constraints, without
338 <     * performing computations to evaluate them in parallel
338 >     * performing computations to evaluate them in parallel.
339       * @return the Iterable view
340       */
341      public Iterable<Double> sequentially() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines