You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
358 B
14 lines
358 B
#include <Eigen/Core>
|
|
#include <iostream>
|
|
#include <random>
|
|
|
|
using namespace StormEigen;
|
|
|
|
int main() {
|
|
std::default_random_engine generator;
|
|
std::poisson_distribution<int> distribution(4.1);
|
|
auto poisson = [&] (StormEigen::Index) {return distribution(generator);};
|
|
|
|
RowVectorXi v = RowVectorXi::NullaryExpr(10, poisson );
|
|
std::cout << v << "\n";
|
|
}
|