big improvement of the block-manipulation API

- reduction of sizeof(Block) for vector types
- variants of block() and fixedBlock() for vector blocks
- convenience methods start() and end() for vectors
- convenience method corner() for matrices
This commit is contained in:
Benoit Jacob
2008-01-13 22:48:57 +00:00
parent 95dc68dc86
commit 6ce996f219
6 changed files with 186 additions and 24 deletions

View File

@@ -0,0 +1,5 @@
Matrix3d m = Vector3d(1,2,3).asDiagonal();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.block(1, 1, 2, 1):" << endl << m.block(1, 1, 2, 1) << endl;
m.block(1, 0, 2, 1) = m.block(1, 1, 2, 1);
cout << "Now the matrix m is:" << endl << m << endl;