blob: 0177b1e51a82295abe96b67075fb8377b6dc8452 [file] [log] [blame]
Benoit Jacob486fdb22008-05-29 03:12:30 +00001Matrix2d m; m << 1,2,3,4;
Benoit Jacob13ad8872008-08-12 02:14:02 +00002cout << (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.