mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add example to the documentation
This commit is contained in:
@@ -43,7 +43,7 @@ int main(int, char **)
|
||||
<< "overwritten _while_ the matrix product m * m is being computed." << endl
|
||||
<< "This is the counterpart of eliminating temporary objects!" << endl
|
||||
<< "Anyway, if you want to store m * m into m, you can do this:" << endl
|
||||
<< " m = eval(m * m);" << endl;
|
||||
<< " m = (m * m).eval();" << endl;
|
||||
m = m_save;
|
||||
m = (m * m).eval();
|
||||
cout << "And m is now:" << endl << m << endl << "as was expected." << endl;
|
||||
|
||||
Reference in New Issue
Block a user