eigen/doc/snippets/tut_matrix_assignment_resizing.cpp

6 lines
193 B
C++
Raw Normal View History

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