diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-08-31 15:46:04 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-08-31 15:46:04 +0200 |
commit | 7ae819123c38b2397bbb0922f5d16e53e4fac42c (patch) | |
tree | ef8c2f0c9ec3f9e0286fa8735e2e8596bb7d5cc4 /doc/special_examples | |
parent | 218c37beb4dbc701938da71acf0bd3914f34f89e (diff) |
Simplify CwiseNullaryOp example.
Diffstat (limited to 'doc/special_examples')
-rw-r--r-- | doc/special_examples/random_cpp11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/special_examples/random_cpp11.cpp b/doc/special_examples/random_cpp11.cpp index adc3c110c..33744c051 100644 --- a/doc/special_examples/random_cpp11.cpp +++ b/doc/special_examples/random_cpp11.cpp @@ -7,7 +7,7 @@ using namespace Eigen; int main() { std::default_random_engine generator; std::poisson_distribution<int> distribution(4.1); - auto poisson = [&] (Eigen::Index) {return distribution(generator);}; + auto poisson = [&] () {return distribution(generator);}; RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson ); std::cout << v << "\n"; |