Sign in
eigen
/
mirror
/
3b5a1b4157ff9997065e4af78872ccf36b83f42b
/
.
/
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
;