help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] some questions


From: Jochen Küpper
Subject: Re: [Help-gsl] some questions
Date: Sat, 08 Apr 2006 22:34:00 +0200

Raphael Mack <address@hidden> writes:

> Am Donnerstag, den 06.04.2006, 23:52 +0200 schrieb Jochen Küpper:
>> Raphael Mack <address@hidden> writes:
>> > Am I just to blind to see some C macro or is there at the moment no
>> > way to e. g. add to gsl_complex_float values?

> I don't see your point. 

Well, maybe I missed yours...

So you are looking for this?
,----
| gsl_complex_float gsl_complex_float_add (gsl_complex_float a, 
gsl_complex_float b)
`----
Actually doesn't seem to be there;)

I agree that they should be, so maybe you can prepare a patch to
provide them in same fashion as
,----[complex/math.c]
| gsl_complex
| gsl_complex_add (gsl_complex a, gsl_complex b)
| {                               /* z=a+b */
|   double ar = GSL_REAL (a), ai = GSL_IMAG (a);
|   double br = GSL_REAL (b), bi = GSL_IMAG (b);
|   gsl_complex z;
|   GSL_SET_COMPLEX (&z, ar + br, ai + bi);
|   return z;
| }
`----

Brian, what's your opinion?

Greetings,
Jochen

PS: For that stuff I do love C++ templates;)
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        (Part 3 you find in my messages before fall 2003.)




reply via email to

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