octave-maintainers
[Top][All Lists]
Advanced

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

Re: convn with real and complex data


From: John W. Eaton
Subject: Re: convn with real and complex data
Date: Fri, 28 Mar 2008 08:57:30 -0400

On 28-Mar-2008, Søren Hauberg wrote:

| Seems to me like a lot of extra code to avoid the extra template
| parameter.

Yes, I agree, but we might also move the traits class to some other
location so that it could be used by more than just convn.  It seems
common that most binary operations between real and complex arguments
would have these argument and return types, and so might be written as
templates using a traits class like this, and even the body of your
F__convn__ function might be something we can generalize and share as
I think that might be a fairly common structure in Octave.

Also, we already have a more extensive set of traits like this set up
for the integer types (see liboctave/oct-inttypes.h).

jwe



reply via email to

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