Sign in
eigen
/
mirror
/
c21a80be3d0506587e73f7a5796df6e83967a934
/
.
/
doc
/
snippets
/
tut_arithmetic_transpose_aliasing.cpp
blob: 75d46cfc4d8ae0b53e450c8f8f94a2b9b5fd7f2a [
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
;