1MatrixXd m(2,3);
2m << 1,2,3,4,5,6;
3cout << "here's the 2x3 matrix m:" << endl << m << endl;
4cout << "let's resize m to 3x2. This is a conservative resizing because 2*3==3*2." << endl;
5m.resize(3,2);
6cout << "here's the 3x2 matrix m:" << endl << m << endl;
7cout << "now let's resize m to size 2x2. This is NOT a conservative resizing, so it becomes uninitialized:" << endl;
8m.resize(2,2);
9cout << m << endl;
10