Benoit Jacob | 486fdb2 | 2008-05-29 03:12:30 +0000 | [diff] [blame] | 1 | Matrix2d m; m << 1,2,3,4; |
Benoit Jacob | 13ad887 | 2008-08-12 02:14:02 +0000 | [diff] [blame] | 2 | cout << (m*m).lazy().row(0) << endl; |
3 | // this computes only one row of the product. By contrast, | ||||
4 | // if we did "(m*m).row(0);" then m*m would first be evaluated into | ||||
5 | // a temporary, because the Product expression has the EvalBeforeNestingBit. |