Raphael Mack <[EMAIL PROTECTED]> writes:

> Am Donnerstag, den 06.04.2006, 23:52 +0200 schrieb Jochen Küpper:
>> Raphael Mack <[EMAIL PROTECTED]> 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.)


_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to