eigen/doc/snippets/Matrix_initializer_list_23_cxx11.cpp

5 lines
59 B
C++

MatrixXd m {
{1, 2, 3},
{4, 5, 6}
};
cout << m << endl;