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

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


David Roundy wrote:
> Personally, I'd greatly prefer not to have any implicit conversion
> from matrices to doubles, with the possible exception of when it's
> known at compile time to be a 1x1 matrix.  It sounds otherwise like a
> recipe for bugs.

I agree on that. In most practical situations this should be the case.

Another question would be to allow things like:

  Eigen::Vector3d a, b, c;
  a.transpose() * b * c;

or only explicitly:

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


Christoph


-- 
----------------------------------------------
Dipl.-Inf. Christoph Hertzberg
Cartesium 0.051
Universität Bremen
Enrique-Schmidt-Straße 5
28359 Bremen

Tel: (+49) 421-218-64252
----------------------------------------------



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/