LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / doc / snippets / MatrixBase_cwiseEqual.cpp
blobeb3656f4cacdad0964015b13299bd00f8a32aedb
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 int count = m.cwiseEqual(MatrixXi::Identity(2,2)).count();
7 cout << "Number of coefficients that are equal: " << count << endl;