[Cython] C99/C++ complex type support
Robert Bradshaw
robertwb at math.washington.edu
Mon Dec 29 22:13:31 CET 2008
On Dec 29, 2008, at 1:07 PM, Robert Kern wrote:
> Robert Bradshaw wrote:
>> On Dec 29, 2008, at 12:45 PM, Lisandro Dalcin wrote:
>>
>>> On Mon, Dec 29, 2008 at 5:42 PM, Robert Kern
>>> <robert.kern at gmail.com> wrote:
>>>> You might want to follow numpy's lead and define complex64 (float
>>>> complex),
>>>> complex128 (double complex), etc.
>>>>
>>> I really like your idea... Let's see what other people think about
>>> this...
>>
>> Yes. Note that "double complex" typically means a complex with
>> double-
>> prec real and imaginary parts, not 128 bits.
>
> Right. numpy goes with the convention that the bit-width suffix is
> the width of
> the entire item, not the component real and imaginary parts for the
> complex type.
Ah, good. Thanks for the clarification.
- Robert
More information about the Cython-dev
mailing list