[Numpy-discussion] What type should / return in python3kwhenapplied to two integer types?

Nadav Horesh nadavh@visionsense....
Thu Aug 27 14:43:31 CDT 2009


I really do not mind avoiding the long doubles, In practice I used them only once or twice, but I assume that short int -> float would be useful for many of the numpy users. It also may align nicely with (u)int8->float16 on GPUs.

  Nadav


-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם Charles R Harris
נשלח: ה 27-אוגוסט-09 22:25
אל: Discussion of Numerical Python
נושא: Re: [Numpy-discussion] What type should / return in python3kwhenapplied to two integer types?
 
2009/8/27 Nadav Horesh <nadavh@visionsense.com>

>
> How about making this arch dependent translation:
>
> short int -> float
> int -> double
> long int -> long double
>
> or adding a flag that would switch between the above translation to the
> option that would produce only doubles.
>
> For some computing projects I made I would prefer the first option: There I
> used huge array, and could not afford having extra precision of the account
> of memory consumption.  Currently I do a  lot of (8 and 16 bits) image
> processing, memory size is not a problem, and it feels nice not to worry
> about precision (think about the bad habits of Matlab users).
>

I really want to avoid long double. My hope is that some day it will always
be quad precision on ieee machines and then it will be a more universal
type. But that day is still in the (far?) future.

<snip>

Chuck

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4106 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090827/3be5cde8/attachment.bin 


More information about the NumPy-Discussion mailing list