eigen/doc/snippets/tut_matrix_assignment_resizing.cpp

6 lines
195 B
C++
Raw Normal View History

MatrixXf a(2, 2);
2010-07-06 17:48:25 +08:00
std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl;
MatrixXf b(3, 3);
2010-06-28 05:45:37 +08:00
a = b;
2010-07-06 17:48:25 +08:00
std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;