aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/tutorial.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-07 09:47:13 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2007-09-07 09:47:13 +0000
commit506cc5db12bdfa375d630d85d2fde12bdfe1d1ec (patch)
treeeb6936dfef003743d1c222d0ba83cd0d477bc80d /doc/tutorial.cpp
parent61158b1922e2aeeb132fbf6ceea551f61c400cde (diff)
remove operator *= between matrices: too much hassle.
Diffstat (limited to 'doc/tutorial.cpp')
-rw-r--r--doc/tutorial.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/tutorial.cpp b/doc/tutorial.cpp
index 51847460f..330fcf326 100644
--- a/doc/tutorial.cpp
+++ b/doc/tutorial.cpp
@@ -49,12 +49,5 @@ int main(int, char **)
m = m_save;
m.alias() = m * m;
cout << "And m is now:" << endl << m << endl << "as was expected." << endl;
- cout << "To make your life easier, operator*= between matrices automatically" << endl
- << "creates an alias. So a *= b is equivalent to a.alias() *= b," << endl
- << "when a and b are matrices. So, coming back to the original matrix m," << endl
- << "if we do m *= m, the matrix m becomes:" << endl;
- m = m_save;
- m *= m;
- cout << m << endl << "as expected." << endl;
return 0;
}