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?

-------- numpy_complex_arith.pyx ---------
cimport numpy as np

cdef np.complex128_t x = 0
print x+x

-----------------

gcc: numpy_complex_arith.c
numpy_complex_arith.c: In function 'initnumpy_complex_arith':
numpy_complex_arith.c:2536: error: incompatible types in assignment
numpy_complex_arith.c:2543: error: incompatible type for argument 1  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 2  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 1  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 2  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c: In function 'initnumpy_complex_arith':
numpy_complex_arith.c:2536: error: incompatible types in assignment
numpy_complex_arith.c:2543: error: incompatible type for argument 1  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 2  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 1  
of '__pyx_t_double_complex_add'
numpy_complex_arith.c:2543: error: incompatible type for argument 2  
of '__pyx_t_double_complex_add'

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

Reply via email to