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

Comparing jsr166/src/extra166y/ParallelArrayWithDoubleMapping.java (file contents):
Revision 1.3 by jsr166, Wed Jul 4 20:13:53 2012 UTC vs.
Revision 1.6 by jsr166, Sun Jan 18 20:17:32 2015 UTC

# Line 5 | Line 5
5   */
6  
7   package extra166y;
8 +
9   import jsr166y.*;
10   import static extra166y.Ops.*;
11   import java.util.*;
# Line 24 | Line 25 | public abstract class ParallelArrayWithD
25      }
26  
27      /**
28 <     * Applies the given procedure
28 >     * Applies the given procedure.
29       * @param procedure the procedure
30       */
31      public void apply(DoubleProcedure procedure) {
# Line 32 | Line 33 | public abstract class ParallelArrayWithD
33      }
34  
35      /**
36 <     * Returns reduction of mapped elements
36 >     * Returns reduction of mapped elements.
37       * @param reducer the reducer
38       * @param base the result for an empty array
39       * @return reduction
# Line 45 | Line 46 | public abstract class ParallelArrayWithD
46      }
47  
48      /**
49 <     * Returns the minimum element, or Double.MAX_VALUE if empty
49 >     * Returns the minimum element, or Double.MAX_VALUE if empty.
50       * @return minimum element, or Double.MAX_VALUE if empty
51       */
52      public double min() {
# Line 53 | Line 54 | public abstract class ParallelArrayWithD
54      }
55  
56      /**
57 <     * Returns the minimum element, or Double.MAX_VALUE if empty
57 >     * Returns the minimum element, or Double.MAX_VALUE if empty.
58       * @param comparator the comparator
59       * @return minimum element, or Double.MAX_VALUE if empty
60       */
# Line 62 | Line 63 | public abstract class ParallelArrayWithD
63      }
64  
65      /**
66 <     * Returns the maximum element, or -Double.MAX_VALUE if empty
66 >     * Returns the maximum element, or -Double.MAX_VALUE if empty.
67       * @return maximum element, or -Double.MAX_VALUE if empty
68       */
69      public double max() {
# Line 70 | Line 71 | public abstract class ParallelArrayWithD
71      }
72  
73      /**
74 <     * Returns the maximum element, or -Double.MAX_VALUE if empty
74 >     * Returns the maximum element, or -Double.MAX_VALUE if empty.
75       * @param comparator the comparator
76       * @return maximum element, or -Double.MAX_VALUE if empty
77       */
# Line 79 | Line 80 | public abstract class ParallelArrayWithD
80      }
81  
82      /**
83 <     * Returns the sum of elements
83 >     * Returns the sum of elements.
84       * @return the sum of elements
85       */
86      public double sum() {
# Line 87 | Line 88 | public abstract class ParallelArrayWithD
88      }
89  
90      /**
91 <     * Returns summary statistics
91 >     * Returns summary statistics.
92       * @param comparator the comparator to use for
93       * locating minimum and maximum elements
94 <     * @return the summary.
94 >     * @return the summary
95       */
96      public ParallelDoubleArray.SummaryStatistics summary
97          (DoubleComparator comparator) {
# Line 101 | Line 102 | public abstract class ParallelArrayWithD
102      }
103  
104      /**
105 <     * Returns summary statistics, using natural comparator
106 <     * @return the summary.
105 >     * Returns summary statistics, using natural comparator.
106 >     * @return the summary
107       */
108      public ParallelDoubleArray.SummaryStatistics summary() {
109          return summary(CommonOps.naturalDoubleComparator());
110      }
111  
112      /**
113 <     * Returns a new ParallelDoubleArray holding mappings
113 >     * Returns a new ParallelDoubleArray holding mappings.
114       * @return a new ParallelDoubleArray holding mappings
115       */
116      public ParallelDoubleArray all() {
# Line 138 | Line 139 | public abstract class ParallelArrayWithD
139       * @param op the op
140       * @return operation prefix
141       */
142 <    public abstract <U> ParallelArrayWithMapping<T, U> withMapping
142 >    public abstract <U> ParallelArrayWithMapping<T,U> withMapping
143          (DoubleToObject<? extends U> op);
144  
145      /**
# Line 306 | Line 307 | public abstract class ParallelArrayWithD
307      /**
308       * Returns an Iterable view to sequentially step through mapped
309       * elements also obeying bound and filter constraints, without
310 <     * performing computations to evaluate them in parallel
310 >     * performing computations to evaluate them in parallel.
311       * @return the Iterable view
312       */
313      public Iterable<Double> sequentially() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines