Tutorial_ArrayClass_cwise_other.cpp
Go to the documentation of this file.
00001 #include <Eigen/Dense>
00002 #include <iostream>
00003 
00004 using namespace Eigen;
00005 using namespace std;
00006 
00007 int main()
00008 {
00009   ArrayXf a = ArrayXf::Random(5);
00010   a *= 2;
00011   cout << "a =" << endl 
00012        << a << endl;
00013   cout << "a.abs() =" << endl 
00014        << a.abs() << endl;
00015   cout << "a.abs().sqrt() =" << endl 
00016        << a.abs().sqrt() << endl;
00017   cout << "a.min(a.abs().sqrt()) =" << endl 
00018        << a.min(a.abs().sqrt()) << endl;
00019 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27