Sign in
third-party-mirror
/
eigen
/
2a10258d45ce0d23630971b7050643d0828d10de
/
.
/
doc
/
snippets
/
tut_arithmetic_transpose_aliasing.cpp
blob: f82e6f2ac98170299112c7185282df2937991c78 [
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
;