From r.hankin at noc.soton.ac.uk  Fri Jul  1 15:41:52 2005
From: r.hankin at noc.soton.ac.uk (Robin Hankin)
Date: Fri, 1 Jul 2005 14:41:52 +0100
Subject: [Rd] C code in packages with complex arguments/returned value
Message-ID: <626733E1-D6FF-4B81-8417-D6013B5BBB5B@soc.soton.ac.uk>

Hi

one of my packages has a severe bottleneck at a particular function  
and I
suspect  that replacing the R code with C code would speed it up.
The function takes complex arguments and returns a complex value.

I would like to follow Best Practice here.  None of the C code in my
packages includes the ability to handle complex numbers (this is done  
by R).

Does anyone know of a package that includes C code which manipulates
and returns  complex arguments that I could take a look at?

Yes, there is src/main/complex.c, but I would like to see how complex  
arithmetic is
done in a package (or how it should be done).

--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743



[Rd] C code in packages with complex arguments/returned value
Robin Hankin