source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_select.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 115 bytes
Line 
1MatrixXi m(3, 3);
2m << 1, 2, 3,
3 4, 5, 6,
4 7, 8, 9;
5m = (m.array() >= 5).select(-m, m);
6cout << m << endl;
Note: See TracBrowser for help on using the repository browser.