source:
pacpussensors/trunk/Vislab/lib3dv/eigen/doc/snippets/MatrixBase_select.cpp@
138
Last change on this file since 138 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.