Sign in
third-party-mirror
/
eigen
/
eae6db0ca08e15a56faa194349561649dde541dd
/
.
/
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
;