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/tutorial.cpp | |
parent | b3268a6e2fd985bd1abfda0f19f266eaed1c018a (diff) |
Patch by Gael Guennebaud: unify fixed-size and dynamic-size Block
expressions, update documentation.
Diffstat (limited to 'doc/tutorial.cpp')
-rw-r--r-- | doc/tutorial.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp index 10406819f..b0627083d 100644 --- a/doc/tutorial.cpp +++ b/doc/tutorial.cpp @@ -18,13 +18,13 @@ int main(int, char **) // notice how we are mixing fixed-size and dynamic-size types. cout << "In the top-left block, we put the matrix m shown above." << endl; - m2.fixedBlock<2,2>(0,0) = m; + m2.block<2,2>(0,0) = m; cout << "In the bottom-left block, we put the matrix m*m, which is:" << endl << m*m << endl; - m2.fixedBlock<2,2>(2,0) = m * m; + m2.block<2,2>(2,0) = m * m; cout << "In the top-right block, we put the matrix m+m, which is:" << endl << m+m << endl; - m2.fixedBlock<2,2>(0,2) = m + m; + m2.block<2,2>(0,2) = m + m; cout << "In the bottom-right block, we put the matrix m-m, which is:" << endl << m-m << endl; - m2.fixedBlock<2,2>(2,2) = m - m; + m2.block<2,2>(2,2) = m - m; cout << "Now the 4x4 matrix m2 is:" << endl << m2 << endl; cout << "Row 0 of m2 is:" << endl << m2.row(0) << endl; |