From f12e9c53ac6c5157133219f54e95496773d32d3f Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Fri, 29 Feb 2008 13:56:40 +0000 Subject: Patch by Gael Guennebaud: unify fixed-size and dynamic-size Block expressions, update documentation. --- doc/snippets/MatrixBase_fixedBlock_int_int.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/snippets/MatrixBase_fixedBlock_int_int.cpp') 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; -- cgit v1.2.3