remove operator *= between matrices: too much hassle.

This commit is contained in:
Benoit Jacob
2007-09-07 09:47:13 +00:00
parent 61158b1922
commit 506cc5db12
4 changed files with 4 additions and 35 deletions

View File

@@ -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;
}