2
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2024-12-27 07:29:52 +08:00
eigen/doc/snippets/Matrix_setOnes_int.cpp

4 lines
45 B
C++

VectorXf v;
v.setOnes(3);
cout << v << endl;