aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/tutorial.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-10-01 18:20:35 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-10-01 18:20:35 +0000
commitc768a44909ab52720a8f205dc78611bce83a55e6 (patch)
treea8b9411510b271a264b3c7c9fd65985ff4aeff4b /doc/tutorial.cpp
parentf5f45d751c151b6e28e24905c99248973990bffa (diff)
Add matrix transposition
Diffstat (limited to 'doc/tutorial.cpp')
-rw-r--r--doc/tutorial.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp
index a5b019531..794df8fd3 100644
--- a/doc/tutorial.cpp
+++ b/doc/tutorial.cpp
@@ -25,10 +25,10 @@ int main(int, char **)
m2.block(2,3,2,3) = m - m;
cout << "Now the 4x4 matrix m2 is:" << endl << m2 << endl;
- cout << "The central 2x2 block of m2 is:" << endl << m2.block(1,2,1,2) << endl;
cout << "Row 0 of m2 is:" << endl << m2.row(0) << endl;
cout << "The third element in that row is " << m2.row(0)[2] << endl;
cout << "Column 1 of m2 is:" << endl << m2.col(1) << endl;
+ cout << "The transpose of m2 is:" << endl << m2.transpose() << endl;
cout << "The matrix m2 with row 0 and column 1 removed is:" << endl << m2.minor(0,1) << endl;
return 0;