Re: [eigen] aliasing system

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


On Saturday 08 September 2007 00:03:49 Andre Krause wrote:

> ok, that would be really great. but please dont put any priority on it -
> i dont want to distract you from the main goal, a working eigen2 release!

now that you got me started... i already gave it a bit of thought today :)

> but it would be possible to add alias() inside the operator=(...)
> function(s) ???
> so the system would always generate a temporary ? so one could cross
> validate one's code with and without temporaries.
>
> something ala
>
> operator=(const Matrix<T,d1,d2>&m)
> {
> 	#ifdef _NO_EXPTEMPLATE_OPTIMIZE
> 	this->alias()=m;
> 	#else
> 	???
> 	#endif
> }

I get what you mean. Yes, this can be done.

Benoit

Attachment: signature.asc
Description: This is a digitally signed message part.



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