Re: return value optimization on expression/meta templates

"E. Robert Tisdale" <E.Robert.Tisdale@jpl.nasa.gov>
25 Jun 2003 00:54:17 -0400

          From comp.compilers

Related articles
return value optimization on expression/meta templates opetzold@wit.regiocom.net (Olaf Petzold) (2003-06-20)
Re: return value optimization on expression/meta templates E.Robert.Tisdale@jpl.nasa.gov (E. Robert Tisdale) (2003-06-25)
| List of all articles for this month |
From: "E. Robert Tisdale" <E.Robert.Tisdale@jpl.nasa.gov>
Newsgroups: comp.compilers,comp.lang.c++
Date: 25 Jun 2003 00:54:17 -0400
Organization: Jet Propulsion Laboratory
References: 03-06-084
Keywords: optimize
Posted-Date: 25 Jun 2003 00:54:17 EDT

Olaf Petzold wrote:
> I'm writing tvmet, a linear algebra library using expression and meta
> templates. ...
>
> Unfortunately chaining (e.g. Matrix=product(product(transpose(Matrix),
> Matrix), Matrix)) expressions will go into wrong, or partially wrong
> results due to using return value optimizations. It takes memory
> regions where the evaluated results where before.
>
> [ What's the problem? ]


Hi Olaf,


Subscribe to the Object-Oriented Numerics List


http://www.oonumerics.org/mailman/listinfo.cgi/oon-list/


and ask your question there.



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.