random_cpp11.cpp
Go to the documentation of this file.
1 #include <Eigen/Core>
2 #include <iostream>
3 #include <random>
4 
5 int main() {
6  std::default_random_engine generator;
7  std::poisson_distribution<int> distribution(4.1);
8  auto poisson = [&] () {return distribution(generator);};
9 
11  std::cout << v << "\n";
12 }
Array< int, Dynamic, 1 > v
static const CwiseNullaryOp< CustomNullaryOp, PlainObject > NullaryExpr(Index rows, Index cols, const CustomNullaryOp &func)
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
int main()
Definition: random_cpp11.cpp:5