Newsgroups: comp.lang.c++
From: vande...@pleiades.cs.rpi.edu (David Vandevoorde)
Date: 17 Mar 1995 19:36:53 GMT
Local: Fri, Mar 17 1995 2:36 pm
Subject: Re: Can I eliminate these temporary objects?
In article <3kaqnn$...@aggedor.rmit.EDU.AU>,
David Hoadley <s840...@minyos.xx.rmit.EDU.AU> wrote: Yes, but it's not so easy to make a general robust code that achieves >Consider the following code. I have created a matrix class for >complex numbers, called DCMatrix, and an operator* function: >int main() >If I trace its execution, I see: >constructor --A(2,3) >operator* >destructor --C >Result is a temporary matrix which I would rather not have, but I >Is is possible to implement this without these two temporary matrices? this. >If not, which I fear, can I at least avoid the creation of one of them I would suggest you take a look at two packages. >(presumably anon)? >Thanks for any help, The first one is "NewMat" ("newmat08" is the latest release, I believe) The second package is my own valarray<Troy> (get it by anonymous ftp from >-------------------------------------------------------------------------- --- Daveed >David Hoadley Internet: s840...@minyos.xx.rmit.edu.au >Electrical Engineering, RMIT >Melbourne, Australia Ph: +61 3 660-4847, Fax: +61 3 660-2007 You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||