help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Realtime cost of call by value


From: John W. Eaton
Subject: Re: Realtime cost of call by value
Date: Fri, 31 Oct 2003 13:49:04 -0600

On 31-Oct-2003, Glenn Golden <address@hidden> wrote:

| I'm updating the other matrix types with this 'fast global' stuff,
| and I want make sure I do the uniqification correctly. In the code you
| originally posted, you defined the Matrix::matrix_reference() as
| 
|   Matrix&
|   Matrix::matrix_reference (void)
|   {
|     matrix.make_unique ();
|     return *this;
|   }
| 
| When I originally compiled this (dMatrix.cc), I got an undefined
| ref on 'matrix', which I assumed was due to some missing header
| file or something, which I couldn't readily ascertain at the time.

It was a mistake.

| So for the purposes of initial testing, I just changed it from
| matrix.make_unique() to make_unique() under the assumption that
| the right method would be called (which it is).

Yes, this is the correct fix.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]