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 }
ArrayXcf v
Definition: Cwise_arg.cpp:1
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
int main()
Definition: random_cpp11.cpp:7


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:43:47