random_cpp11.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 5 of file random_cpp11.cpp.

5  {
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