Files
eigen/doc/snippets/tut_matrix_assignment_resizing.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
195 B
C++
Raw Permalink Normal View History

2010-06-27 23:45:37 +02:00
MatrixXf a(2, 2);
2010-07-06 10:48:25 +01:00
std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl;
2010-06-27 23:45:37 +02:00
MatrixXf b(3, 3);
a = b;
2010-07-06 10:48:25 +01:00
std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;