eigen/doc/snippets/MatrixBase_setRandom.cpp
Benoit Jacob e092cbc75c -add set...() methods and their documentation; remove Generic
-use row-major traversal when the number of columns is fixed
 and the number of rows is dynamic
-other minor changes
2008-01-11 15:08:04 +00:00

4 lines
72 B
C++

Matrix4i m = Matrix4i::zero();
m.col(1).setRandom();
cout << m << endl;