blob: a59613a6c36af72d1f6fdd6488c9cf41684a57d5 [file] [log] [blame]
#include <Eigen/Core>
#include <iostream>
#include <random>
int main() {
std::default_random_engine generator;
std::poisson_distribution<int> distribution(4.1);
auto poisson = [&]() { return distribution(generator); };
Eigen::RowVectorXi v = Eigen::RowVectorXi::NullaryExpr(10, poisson);
std::cout << v << "\n";
}