cart-elc

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

MatrixBase_cwiseEqual.cpp (276B)


      1 MatrixXi m(2,2);
      2 m << 1, 0,
      3      1, 1;
      4 cout << "Comparing m with identity matrix:" << endl;
      5 cout << m.cwiseEqual(MatrixXi::Identity(2,2)) << endl;
      6 Index count = m.cwiseEqual(MatrixXi::Identity(2,2)).count();
      7 cout << "Number of coefficients that are equal: " << count << endl;