Add examples for API documentation of block methods in DenseBase.

This commit is contained in:
Jitse Niesen
2010-07-23 22:20:00 +01:00
parent 2b5a0060b4
commit 425444428c
17 changed files with 113 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.bottomRightCorner(2, 2):" << endl;
cout << m.bottomRightCorner(2, 2) << endl;
m.bottomRightCorner(2, 2).setZero();
cout << "Now the matrix m is:" << endl << m << endl;