summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp')
-rw-r--r--eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp b/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp
index 6a2e4fb..7f0a105 100644
--- a/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp
+++ b/eigen/doc/snippets/MatrixBase_cwiseNotEqual.cpp
@@ -3,5 +3,5 @@ m << 1, 0,
1, 1;
cout << "Comparing m with identity matrix:" << endl;
cout << m.cwiseNotEqual(MatrixXi::Identity(2,2)) << endl;
-int count = m.cwiseNotEqual(MatrixXi::Identity(2,2)).count();
+Index count = m.cwiseNotEqual(MatrixXi::Identity(2,2)).count();
cout << "Number of coefficients that are not equal: " << count << endl;