On Jul 29, 2009, at 1:14 PM, dagss wrote: > > On Jul 29, 7:22 pm, Robert Bradshaw <[email protected]> > wrote: >> On Jul 29, 2009, at 9:46 AM, Dag Sverre Seljebotn wrote: >> >> >> >>> Robert Bradshaw wrote: >>>> I'm not sure if or when either of these will be available, but >>>> neither are trivial. Both questions are probably better asked on >>>> the >>>> cython lists. >> >>>> - Robert >> >>>> On Jul 22, 2009, at 12:17 PM, Ethan Van Andel wrote: >> >>>>> Robert, >> >>>>> Is there any prediction for when numpy complex types will work? >>>>> (outside of the notebook, when compiling via sage -b) >> >>> I assume this will happen when Cython is upgraded in Sage, i.e. >>> #6438 / >>> 4.1.1. If it doesn't, please send cython-dev (or me if you can't be >>> bothered) a mail. >> >> No, that doesn't work with plain Cython either. Perhaps we need to >> require casting with extern typedefs? > > Ahh, of course; "Cython complex" (either C99 or custom structs) are > not > compatible with NumPy structs. > > I've selected this strategy: > > http://trac.cython.org/cython_trac/ticket/347 > > Fix is up in cython repo.
Ah, that's a lot simpler than I was thinking of. So npy_complex128 still doesn't work, but it's never used. As for sizeof(double) == 64 bits, I think we're safe, because numpy defines npy_complex128 to be a struct of two doubles, so you couldn't be using it with numpy if this were violated (which would be pretty strange). - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
