LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / MatrixBase_cwiseNotEqual.cpp
blob6a2e4fb6c40e95ffcd49a1564fd67d565d2d052b
1 MatrixXi m(2,2);
2 m << 1, 0,
3 1, 1;
4 cout << "Comparing m with identity matrix:" << endl;
5 cout << m.cwiseNotEqual(MatrixXi::Identity(2,2)) << endl;
6 int count = m.cwiseNotEqual(MatrixXi::Identity(2,2)).count();
7 cout << "Number of coefficients that are not equal: " << count << endl;