MatrixBase_cwiseEqual.cpp
Go to the documentation of this file.
00001 MatrixXi m(2,2);
00002 m << 1, 0,
00003      1, 1;
00004 cout << "Comparing m with identity matrix:" << endl;
00005 cout << m.cwiseEqual(MatrixXi::Identity(2,2)) << endl;
00006 int count = m.cwiseEqual(MatrixXi::Identity(2,2)).count();
00007 cout << "Number of coefficients that are equal: " << count << endl;


libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:33:06