aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/snippets/tut_arithmetic_transpose_aliasing.cpp
blob: dec2634a285362593e4b7865e2d9bb68f48f741c (plain)
1
2
3
4
Matrix2i a; a << 1, 2, 3, 4;
cout << "Here is the matrix a:\n" << a << endl;
a = a.transpose(); // fails
cout << "and the aliasing effect:\n" << a << endl;