On Feb 16, 2009, at 7:55 AM, Lisandro Dalcin wrote:

> Two separate issues here...
>
> 1) Regarding mpi4py, as it is based on the C API for MPI, it does not
> have complex support natively. Of course, you could use
>
> COMPLEX = MPI.DOUBLE.Create_contiguous(2)
>
> and then the new 'COMPLEX' datatype will likely work for communicating
> arrays with (double precision) complex entries.
>
> 1) Regarding petsc4py, the support for complex numbers is not ready
> yet. The big issue is that Cython does not natively support them.
> Rather than hacking petsc4py for complex support, I would prefer to
> spend my time on hacking Cython to enable good complex support.
> However, if there is a strong need for petsc4py+complex, I could work
> on providing a patch to make it work.
>
>
>
> Now a request to the Cython folks,
>
> Could we create a branch 'cython-devel-complex' for start working on
> good complex support?
> This way I could push my preliminary work on this, all you can review
> my progress, and other users can pull and build petsc4py with complex
> support...

I have started doing a bit of work on this too, but first priority  
should be to get 0.11 released. Then we can focus on new features again.

- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to