source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/doc/snippets/MatrixBase_select.cpp

Last change on this file was 136, checked in by ldecherf, 8 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.