random_cpp11.cpp
Go to the documentation of this file.
1 #include <Eigen/Core>
2 #include <iostream>
3 #include <random>
4 
5 using namespace Eigen;
6 
7 int main() {
8  std::default_random_engine generator;
9  std::poisson_distribution<int> distribution(4.1);
10  auto poisson = [&] () {return distribution(generator);};
11 
12  RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson );
13  std::cout << v << "\n";
14 }
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
int main()
Definition: random_cpp11.cpp:7
Array< int, Dynamic, 1 > v


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:35:29