tut_matrix_assignment_resizing.cpp (193B)
1 MatrixXf a(2,2); 2 std::cout << "a is of size " << a.rows() << "x" << a.cols() << std::endl; 3 MatrixXf b(3,3); 4 a = b; 5 std::cout << "a is now of size " << a.rows() << "x" << a.cols() << std::endl;
cart-elcSource code for CART-ELC | |
| git clone git://git.laack.co/cart-elc.git | |
| Log | Files | Refs | README | LICENSE |