cart-elc

Source code for CART-ELC
git clone git://git.laack.co/cart-elc.git
Log | Files | Refs | README | LICENSE

MatrixBase_select.cpp (115B)


      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;