After applying both http://trac.sagemath.org/sage_trac/ticket/6438 and http://trac.sagemath.org/sage_trac/ticket/4571 , the notebook seems to work just as well as the command line, or just raw Cython. Hopefully this makes it into 4.1.1.
As for complex types, there's still some issues of doing arithmetic with numpy-defined types. You have to declare them natively %cython import numpy as np cimport numpy as np def test_array(): cdef np.ndarray[double complex, ndim=1] a = np.zeros(5, dtype=np.complex128) a[0] = 3+4j a[1] = 1j cdef double complex z = a[0] * a[1] print z test_array() (-4+3j) - Robert On Jul 22, 2009, at 5:46 AM, Michael Madison wrote: > > Ethen, Sorry I have not tried. I wanted to speed up some molecular > dynamics code I have been playing with that uses numpy and I actually > only need the real types. Also, I have been just working with the > notebooks. For VMWARE the graphics does not work outside of the > notebook interface. Since the ctypedef assignments like "ctypedef > numpy.float_t Dtype_t" does not currently work in sage with cython I > was trying to pigy back off of your questions to see if I could get it > to work before they fix the bug in Sage. I see a lot of potential for > Sage for Physics and engineering applications if a few things get > fixed. Mike > > On Jul 21, 5:15 pm, Ethan Van Andel <evlu...@gmail.com> wrote: >> I think it only works outside, when compiling extensions for sage. >> However, I am also getting issues with complex types after the fix, >> did you get them to compile regularly outside? >> >> Ethan > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---