Re: [eigen] about .lazy()

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


2009/8/15 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> I'm OK with this behavior but I think that it needs to be a little
> more predictable. Perhaps it could be explicitly said that
> a.noalias()+=b assumes that there is no aliasing between a and b. In
> this way, the decision of evaluating b or not becomes purely an
> optimization issue and we're free to do what we want in the backyard
> :)

D'oh. Now that I'm thinking about it... it should be obvious that
a.noalias()+=b assumes that there is no aliasing between a and b.
That's exactly what noalias() is supposed to mean :) I guess it will
be obvious to the user though it's still worth saying in the docs. I
got confused because I looked at it from the impl point of view :)

Benoit



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