blob: 71f203090591b04016d6d1f12a1413b27ed1fe80 [file] [log] [blame]
#include <Eigen/Dense>
#include <iostream>
int main() {
Eigen::ArrayXXf a(2, 2);
a << 1, 2, 3, 4;
std::cout << "(a > 0).all() = " << (a > 0).all() << std::endl;
std::cout << "(a > 0).any() = " << (a > 0).any() << std::endl;
std::cout << "(a > 0).count() = " << (a > 0).count() << std::endl;
std::cout << std::endl;
std::cout << "(a > 2).all() = " << (a > 2).all() << std::endl;
std::cout << "(a > 2).any() = " << (a > 2).any() << std::endl;
std::cout << "(a > 2).count() = " << (a > 2).count() << std::endl;
}