Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

tut_matrix_assignment_resizing.cpp
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;

Generated by  Doxygen 1.6.0   Back to index