2010/1/27 Boris Mansencal <boris.mansencal@xxxxxxxx>:
Hi,
I have some questions relative to Gael's work on true Array class (with
component wise operations) :
- Has its fork been merged with main development branch ?
Yes.
- How do we declare a vector and apply sin() to it ?
The following code does not compile (with both branches) :
Eigen::ArrayXd v1(N);
//...
Eigen::ArrayXd v2 = sin(v1);
Hm it's either std::sin (so make sure you have using namespace std) or
ei_sin or v1.sin();
Benoit
Thanks a lot,
Boris.