Re: [eigen] question on Product.h

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




On Fri, Mar 19, 2010 at 3:30 AM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
Hi,
this is a question for our favorite 30-year-old:

in Product.h, in ei_gemv_selector, you have lines like:

Map<Matrix<Scalar,Dest::RowsAtCompileTime,1> >(actualDest, dest..size()) = dest;

my question is, why this type Matrix<Scalar,Dest::RowsAtCompileTime,1>?

 - couldn't we propagate the max-sizes? Or do you mean, this is only
ever called for big/dynamic sizes?

Why not.
 
 - wouldn't it be simpler to just pass e.g. typename Dest::PlainObject ?

Yes, that sounds reasonable to me.

gael
 

Benoit





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