Tutorial_ArrayClass_cwise_other.cpp
Go to the documentation of this file.
1 #include <Eigen/Dense>
2 #include <iostream>
3 
4 int main()
5 {
7  a *= 2;
8  std::cout << "a =" << std::endl
9  << a << std::endl;
10  std::cout << "a.abs() =" << std::endl
11  << a.abs() << std::endl;
12  std::cout << "a.abs().sqrt() =" << std::endl
13  << a.abs().sqrt() << std::endl;
14  std::cout << "a.min(a.abs().sqrt()) =" << std::endl
15  << a.min(a.abs().sqrt()) << std::endl;
16 }
General-purpose arrays with easy API for coefficient-wise operations.
Definition: Array.h:49
static const RandomReturnType Random()
Definition: Random.h:114