Re: [eigen] Cumbersome syntax questions/feedback

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


2009/8/17 Staffan Gimåker <staffan@xxxxxxxxxx>:
> Is there a reason that operator()(int,int) is treated specially?

I guess, because it is the single most basic accessor/mutator. However:

>And you are absolutely right on the expectation part -- it wasn't until
>I discovered the operator()(int,int) shortcut that I wanted col() and
>row() shortcuts as well.

this is kind of a good reason to not even provide operator() in
Transform, then :)

Actually, I notice that Transform doesn't have coeff() and coeffRef()
methods. That's unpredictable, since it has operator().

Gael, should we remove operator() in the next major version (which is
incompatible anyway) ? leaving as deprecated for now to allow a
smoother transition ?

Benoit



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