mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
13ad88736e
port to.
6 lines
270 B
C++
6 lines
270 B
C++
Matrix2d m; m << 1,2,3,4;
|
|
cout << (m*m).lazy().row(0) << endl;
|
|
// this computes only one row of the product. By contrast,
|
|
// if we did "(m*m).row(0);" then m*m would first be evaluated into
|
|
// a temporary, because the Product expression has the EvalBeforeNestingBit.
|