MatrixBase_noalias.cpp revision c981c48f5bc9aefeffc0bcb0cc3934c2fae179dd
1Matrix2d a, b, c; a << 1,2,3,4; b << 5,6,7,8;
2c.noalias() = a * b; // this computes the product directly to c
3cout << c << endl;
4