Benoit Jacob | 3cd2a12 | 2007-12-24 11:14:25 +0000 | [diff] [blame] | 1 | Matrix4d m = Matrix4d::diagonal(Vector4d(1,2,3,4)); |
Benoit Jacob | e7bdbe2e | 2007-12-27 21:43:10 +0000 | [diff] [blame^] | 2 | cout << "Here is the matrix m:" << endl << m << endl; |
| 3 | cout << "Here is m.block<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl; |
Benoit Jacob | 3cd2a12 | 2007-12-24 11:14:25 +0000 | [diff] [blame] | 4 | m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2); |
Benoit Jacob | e7bdbe2e | 2007-12-27 21:43:10 +0000 | [diff] [blame^] | 5 | cout << "Now the matrix m is:" << endl << m << endl; |