Hi Luis, Glad 2.028 seems work for you!
There’s no fundamental reason for PDL::FFTW3 not to update its dep to PDL 2.028, and then to use FFTW3’s complex stuff. It’s very interesting that the page you’ve linked to says C99 complex types are binary-compatible with a two-element array – that suggests that your idea of ->creal having data flow is quite feasible, and also implies that if PDL::Complex stores its data that way, then it would be quite straightforward. (I believe that with PDL being column-major and PDL::Complex requiring the first dim to be 2, that this is the case?) I will have a look at all this in due course. Currently there are some test failures with nat_complex.t on Centos, so I will also look at fixing those, together with incorporating various small but useful changes from the PDLA series back into PDL. Best regards, Ed From: Luis Mochan<mailto:moc...@icf.unam.mx> Sent: 07 March 2021 15:10 To: pdl-devel@lists.sourceforge.net<mailto:pdl-devel@lists.sourceforge.net>; perldl<mailto:pdl-gene...@lists.sourceforge.net> Subject: Re: [Pdl-devel] PDL 2.027 released Hi Ed, > The problem you identified is due to a logic error in the bifuncs in P::Ops – > they weren’t handling complex inputs correctly because the code to do so was > behind a check for unsigned-handling. Now that’s corrected, and there’s a > test to guard against regressions. As soon as the tests have passed on the > CI, there will be a 2.028 on its way to CPAN. I installed it from github and seems to work! Thanks. Will FFTW3 work with the new complex? I believe it only works currently with [2,N] real pdl's and not with actual PDL::Complex pdl's. It would be nice if it could admit the three kinds. According to http://fftw.org/fftw3_doc/Complex-numbers.html it seems possible to use the fftw libraries with C99 complex numbers. Best 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
_______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel