eigen/doc/snippets/Matrix_setConstant_int_int.cpp

4 lines
55 B
C++
Raw Normal View History

MatrixXf m;
m.setConstant(3, 3, 5);
cout << m << endl;