threed-beam-fea/ext/eigen-3.2.7/doc/snippets/Matrix_setRandom_int_int.cpp

4 lines
50 B
C++

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