source: pacpussensors/trunk/Vislab/lib3dv/eigen/doc/examples/Tutorial_ArrayClass_cwise_other.cpp@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 410 bytes
Line 
1#include <Eigen/Dense>
2#include <iostream>
3
4using namespace Eigen;
5using namespace std;
6
7int main()
8{
9 ArrayXf a = ArrayXf::Random(5);
10 a *= 2;
11 cout << "a =" << endl
12 << a << endl;
13 cout << "a.abs() =" << endl
14 << a.abs() << endl;
15 cout << "a.abs().sqrt() =" << endl
16 << a.abs().sqrt() << endl;
17 cout << "a.min(a.abs().sqrt()) =" << endl
18 << a.min(a.abs().sqrt()) << endl;
19}
Note: See TracBrowser for help on using the repository browser.