Hi,

On Sat, Mar 06, 2021 at 07:41:18PM +0000, Ed . wrote:
> Dear PDL folks,
> I have just uploaded PDL 2.027. Changes from 2.026:

Great!


I want to start using the new complex code, mostly to avoid the errors
due to bad uses of the extra (real-imag) dimension.

> - native support for complex numbers - thanks Ingo Schmid
> - define and use C macros in PP for shorter, more comprehensible XS
>
> Note that the native complex numbers are as defined in C99, and no attempt 
> has (yet) been made to integrate this with PDL::Complex. Additionally, it’s 
> not yet clear to me whether PDL performs better on complex numbers via 
> PDL::Complex, or natively. Could someone more knowledgeable than me with PDL 
> complex numbers (Luis?) come up with a benchmark, or at least a plausible, 
> representative set of calculations to do with complex numbers so I can make a 
> comparison?

Just to learn, I tried to mimic with complex numbers the Mandelbrot
oneliner from the demos. I found what I guess is a bug:

pdl> $a=1+ci
pdl> p $a
1+1i
pdl> p $a*$a
0+2i
pdl> p $a**2
1+0i

So powers of complex numbers are not working. I haven't looked yet at
the P::Ops code. I'll try later.

Anyway, thanks and regards,
Luis


--

                                                                  o
W. Luis Mochán,                      | tel:(52)(777)329-1734     /<(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388     `>/   /\
Av. Universidad s/n CP 62210         |                           (*)/\/  \
Cuernavaca, Morelos, México          | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB


_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to