COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/tut_matrix_assignment_resiz...

6 lines
193 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
MatrixXf a(2,2);
std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl;
MatrixXf b(3,3);
a = b;
std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;