Skip to content

Commit f328f5a

Browse files
committed
trim examples
1 parent bf9f4a1 commit f328f5a

12 files changed

+12
-368
lines changed
File renamed without changes.

inst/examples/boost-simd/boost-simd-capabilities.cpp

Lines changed: 0 additions & 42 deletions
This file was deleted.

inst/examples/boost-simd/boost-simd-dot-v2.cpp

Lines changed: 0 additions & 56 deletions
This file was deleted.

inst/examples/boost-simd/boost-simd-hello-world.cpp

Lines changed: 0 additions & 29 deletions
This file was deleted.

inst/examples/boost-simd/boost-simd-map-reduce.cpp

Lines changed: 0 additions & 53 deletions
This file was deleted.

inst/examples/boost-simd/boost-simd-variadic-mapreduce.cpp

Lines changed: 0 additions & 71 deletions
This file was deleted.

inst/examples/boost-simd/boost-simd-variance.cpp

Lines changed: 0 additions & 110 deletions
This file was deleted.
File renamed without changes.

inst/examples/boost-simd/boost-simd-for-each.cpp renamed to inst/examples/examples-for-each.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ using namespace RcppNT2;
88
#include <Rcpp.h>
99
using namespace Rcpp;
1010

11-
class Accumulator
11+
class ProductAccumulator
1212
{
1313
public:
1414

15-
Accumulator() : result_(1.0) {}
15+
ProductAccumulator() : result_(1.0) {}
1616

1717
template <typename T>
1818
void operator()(const T& data)
@@ -30,7 +30,7 @@ class Accumulator
3030

3131
// [[Rcpp::export]]
3232
double simdProd(NumericVector x) {
33-
return simdFor(x.begin(), x.end(), Accumulator());
33+
return simdFor(x.begin(), x.end(), ProductAccumulator());
3434
}
3535

3636
/*** R

0 commit comments

Comments
 (0)