Go to the documentation of this file.00001 #include <Eigen/Dense>
00002 #include <iostream>
00003
00004 using namespace std;
00005 using namespace Eigen;
00006
00007 int main()
00008 {
00009 ArrayXXf a(2,2);
00010
00011 a << 1,2,
00012 3,4;
00013
00014 cout << "(a > 0).all() = " << (a > 0).all() << endl;
00015 cout << "(a > 0).any() = " << (a > 0).any() << endl;
00016 cout << "(a > 0).count() = " << (a > 0).count() << endl;
00017 cout << endl;
00018 cout << "(a > 2).all() = " << (a > 2).all() << endl;
00019 cout << "(a > 2).any() = " << (a > 2).any() << endl;
00020 cout << "(a > 2).count() = " << (a > 2).count() << endl;
00021 }