Sign in
eigen
/
mirror
/
b8ecda5c66a40e37d1300ce49c35bf0964a3f2d0
/
.
/
doc
/
snippets
/
tut_arithmetic_transpose_aliasing.cpp
blob: c8e4746d07d8c70c02aec51f779efc29d2f4fe04 [
file
] [
log
] [
blame
]
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
;