On Mon, Dec 29, 2008 at 7:13 PM, Robert Bradshaw <[email protected]> wrote: > 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 >>>> <[email protected]> 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. >
However, remember this... sizeof(float) <= sizeof(double) <= sizeof(long double) -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
