4 cout <<
"Comparing m with identity matrix:" << endl;
5 cout <<
m.cwiseNotEqual(MatrixXi::Identity(2,2)) << endl;
6 Index count =
m.cwiseNotEqual(MatrixXi::Identity(2,2)).count();
7 cout <<
"Number of coefficients that are not equal: " << count << endl;
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.