Sign in
eigen
/
mirror
/
099b354ca74835fa97a5b108baf880e36bc43372
/
.
/
doc
/
snippets
/
tut_arithmetic_transpose_aliasing.cpp
blob: c8e4746d07d8c70c02aec51f779efc29d2f4fe04 [
file
]
Matrix2i
a
;
a
<<
1
,
2
,
3
,
4
;
cout
<<
"Here is the matrix a:\n"
<<
a
<<
endl
;
a
=
a
.
transpose
();
// !!! do NOT do this !!!
cout
<<
"and the result of the aliasing effect:\n"
<<
a
<<
endl
;