eigen/doc/snippets/Matrix_setRandom_int_int.cpp

4 lines
50 B
C++

MatrixXf m;
m.setRandom(3, 3);
cout << m << endl;