Sign in
eigen
/
mirror
/
394f564055f3723ead6dd45fdb9013ea77f8f6ad
/
.
/
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
;