Re: [eigen] Convert 1x1 matrix to internal type?

[ Thread Index | Date Index | More Archives ]

This, is really a dot product...*c;

Actually, i think most of the time, when someone wants to cast a 1x1 matrix to a scalar, he missed a dot product somewhere.

And i'm against such an automatic casting as well.




Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>

On Tuesday 21 September 2010 20:21:44 Christoph Hertzberg wrote:

>   Eigen::Vector3d a, b, c;

>   a.transpose() * b * c;


> or only explicitly:


>   double(a.transpose()*b) * c;

Mail converted by MHonArc 2.6.19+