#include #include #include using namespace StormEigen; int main() { std::default_random_engine generator; std::poisson_distribution distribution(4.1); auto poisson = [&] (StormEigen::Index) {return distribution(generator);}; RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson ); std::cout << v << "\n"; }