Sign in
eigen
/
mirror
/
b0b9b4d6b223cfbfee564427514cd6d693e1c503
/
.
/
doc
/
snippets
/
tut_arithmetic_transpose_aliasing.cpp
blob: c8e4746d07d8c70c02aec51f779efc29d2f4fe04 [
file
]
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
;