← Back to team overview

yade-dev team mailing list archive

Re: WM3 -> Eigen migration

 

> But I am a little bit confused about it. I am not sure what to start
> from. Is lib/base/yadeEigen.hpp right way to start from?
> Can anyone tell in a couple of words, what should be done with
> wrapper?
Hi, thanks for your effort.

In short, you should derive Vector3<Scalar>, Vector2<Scalar>,
Matrix3<Scalar> classes from eigen (i.e. Vector3<Scalar>, which will
derive from Eigen::Matrix<Scalar,3,1>) that will mimick API of real wm3
classes (i.e. just short inliners in the class declaration that wil
lcall corresponding underlying eigen's methods, if they are named
differently.

Then write some test suite that will output results of various
functions/expressions, and then you will be able to compare those
outputs if you compile with your eigen wrapper and with Wm3; they should
be the same.

We are here if you need more help.

Cheers, Vaclav





References