blob: 1c3b3a28f9b3659ef4c3aa12df49a18eefc0d31c [file] [log] [blame]
Gael Guennebaud56c7e162009-01-24 15:22:44 +00001Matrix3d m = Matrix3d::Random();
2cout << "Here is the matrix m:" << endl << m << endl;
Jitse Niesen616f9cc2013-08-06 09:49:44 +01003Matrix<ptrdiff_t, 3, 1> res = (m.array() >= 0.5).rowwise().count();
4cout << "Here is the count of elements larger or equal than 0.5 of each row:" << endl;
5cout << res << endl;