eigen/doc/snippets/tut_matrix_assignmnet_resizing.cpp
Benoit Jacob e078bb2637 big improvements to tutorial, especially page 2 (matrix arithmetic).
add placeholders for some 'special topic' pages.
2010-06-26 14:00:00 -04:00

6 lines
183 B
C++

MatrixXf a(2,2);
cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl;
MatrixXf b(3,3);
a = b;
cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;