diff options
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; |