← Back to team overview

yade-dev team mailing list archive

Re: WM3 -> Eigen migration

 

> Vaclav, it needs to be implemented with template using, or just 
> 
> class Vector3r: public Eigen::Matrix<float,3,1> {
You can start without template, but later it should be template. Keep in
mind, even for the non-templated case, that our default scalar type is
Real (not float; although that was probably my example).

There are Vector3<Real> and Vector3<int> we should support. OTOH you can
go through the code and check for Vector3<int>, perhaps it is used only
as convenient way for array<3>, and that code could be converted away
from Vector3<int>. In that case, implementation with Real would be
enough, I guess.

Cheers, Vaclav





Follow ups

References