eigen/doc/snippets/MatrixBase_setOnes.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::random();
m.row(1).setOnes();
cout << m << endl;