diff options
author | 2016-09-19 14:03:54 +0100 | |
---|---|---|
committer | 2016-09-19 14:03:54 +0100 | |
commit | b91e0211727b9ea5d7c30908ed86afc4e50d4c6c (patch) | |
tree | 4dd857d1aabdd4065e8b7dec1369a4bd06bac5e7 /doc/special_examples/random_cpp11.cpp | |
parent | cb81975714a96ecb2faf33ca242feeee3543b1db (diff) | |
parent | ff47717f25aeede4878f65b214cdce264b8314e8 (diff) |
Merged with default.
Diffstat (limited to 'doc/special_examples/random_cpp11.cpp')
-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"; |