COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/Tutorial_commainit_01.cpp

6 lines
70 B
C++

Matrix3f m;
m << 1, 2, 3,
4, 5, 6,
7, 8, 9;
std::cout << m;