Skip to content

Commit aab9a7c

Browse files
committed
tweak prose
1 parent a75b998 commit aab9a7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gallery/simd-variance.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

5151
class SumOfSquaresAccumulator
5252
{
5353
public:
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
*/

0 commit comments

Comments
 (0)