Sign in
ara-mdk
/
platform
/
external
/
eigen
/
c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
/
.
/
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
;