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
363 B
14 lines
363 B
#include <StormEigen/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";
|
|
}
|