Tutorial_ReductionsVisitorsBroadcasting_reductions_bool.cpp File Reference
#include <Eigen/Dense>
#include <iostream>

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
4  {
5  Eigen::ArrayXXf a(2, 2);
6 
7  a << 1, 2, 3, 4;
8 
9  std::cout << "(a > 0).all() = " << (a > 0).all() << std::endl;
10  std::cout << "(a > 0).any() = " << (a > 0).any() << std::endl;
11  std::cout << "(a > 0).count() = " << (a > 0).count() << std::endl;
12  std::cout << std::endl;
13  std::cout << "(a > 2).all() = " << (a > 2).all() << std::endl;
14  std::cout << "(a > 2).any() = " << (a > 2).any() << std::endl;
15  std::cout << "(a > 2).count() = " << (a > 2).count() << std::endl;
16 }
static constexpr Eigen::internal::all_t all
Definition: IndexedViewHelper.h:86
const Scalar * a
Definition: level2_cplx_impl.h:32

References a, and Eigen::placeholders::all.