Sign in
eigen
/
mirror
/
2b7b7aac57130228c8057aac7c4782bd1278c923
/
.
/
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
;