diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-29 13:56:40 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-02-29 13:56:40 +0000 |
commit | f12e9c53ac6c5157133219f54e95496773d32d3f (patch) | |
tree | 660b00e78abe67c3ad1f2f61d20b9129fb3f61e2 /doc/snippets/MatrixBase_fixedBlock_int_int.cpp | |
parent | b3268a6e2fd985bd1abfda0f19f266eaed1c018a (diff) |
Patch by Gael Guennebaud: unify fixed-size and dynamic-size Block
expressions, update documentation.
Diffstat (limited to 'doc/snippets/MatrixBase_fixedBlock_int_int.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_fixedBlock_int_int.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/snippets/MatrixBase_fixedBlock_int_int.cpp b/doc/snippets/MatrixBase_fixedBlock_int_int.cpp index 984fd7094..320112748 100644 --- a/doc/snippets/MatrixBase_fixedBlock_int_int.cpp +++ b/doc/snippets/MatrixBase_fixedBlock_int_int.cpp @@ -1,5 +1,5 @@ Matrix4d m = Vector4d(1,2,3,4).asDiagonal(); cout << "Here is the matrix m:" << endl << m << endl; -cout << "Here is m.fixedBlock<2, 2>(2, 2):" << endl << m.fixedBlock<2, 2>(2, 2) << endl; -m.fixedBlock<2, 2>(2, 0) = m.fixedBlock<2, 2>(2, 2); +cout << "Here is m.fixed<2, 2>(2, 2):" << endl << m.block<2, 2>(2, 2) << endl; +m.block<2, 2>(2, 0) = m.block<2, 2>(2, 2); cout << "Now the matrix m is:" << endl << m << endl; |