00001 MatrixXi m(3, 3); 00002 m << 1, 2, 3, 00003 4, 5, 6, 00004 7, 8, 9; 00005 m = (m.array() >= 5).select(-m, m); 00006 cout << m << endl;