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