Re: [eigen] vector-cwise operator +=/-=

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


On Wed, Dec 16, 2009 at 10:44 AM, Gael Guennebaud <gael.guennebaud@xxxxxxxxx> wrote:
Regarding the convenience I would say 'yes, it's more convenient'. In particular in presence of my previous question - it is (*cough* at least for me) not intuitively clear to the user that the multiplication as proposed by you is equally efficient.

let's see what others think. Maybe a compromise would be to allow automatic transpose for operators += and -= (to be consistent with operator=) but not for non assigning operators (+, -, cwise*, cwiseMin, cwiseMax, etc.).

Ok, I see now in which way my change is affecting all cwise operators even the non-assigning ones and I agree that this is probably not really desired. So, in order to allow the vector-wise assignment one probably needs to specialize operator+=/-= for vector types.

- Hauke


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