epfl-archive/cs440-acg/ext/eigen/doc/snippets/Matrix_setRandom_int.cpp

4 lines
47 B
C++
Raw Permalink Normal View History

2022-04-07 18:46:57 +02:00
VectorXf v;
v.setRandom(3);
cout << v << endl;