1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-05-09 06:19:05 +08:00
eigen/doc/snippets/MatrixBase_setZero.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).setZero();
cout << m << endl;