File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ sum((x - mean(x))^2) / (length(x) - 1)
4545 * accumulation of the transformed results.
4646 *
4747 * Let's write a class that encapsulates this 'sum of
48- * squares' map-reduction operation.
48+ * squares' operation.
4949 */
5050
5151class SumOfSquaresAccumulator
5252{
5353public:
5454
55- // Since the 'map ' operation requires knowledge of the
56- // mean, we ensure our class must be constructed with a
57- // mean value. We will also hold the final result within
58- // the 'result_' variable.
55+ // Since the 'transform() ' operation requires knowledge
56+ // of the mean, we ensure our class must be constructed
57+ // with a mean value. We will also hold the final result
58+ // within the 'result_' variable.
5959 explicit SumOfSquaresAccumulator (double mean)
6060 : mean_(mean), result_(0.0 ), pack_(0.0 )
6161 {}
@@ -152,6 +152,6 @@ microbenchmark(var(large), simdVar(large))
152152*/
153153
154154/* *
155- * As we can see, taking advantage of our SIMD map-reducer
155+ * As we can see, taking advantage of SIMD instructions
156156 * has improved the runtime quite drastically.
157157 */
You can’t perform that action at this time.
0 commit comments