Re: [Numpy-discussion] float32 to float64 casting

2012-11-16 Thread Gökhan Sever
Thanks for the explanations. For either case, I was expecting to get float32 as a resulting data type. Since, float32 is large enough to contain the result. I am wondering if changing casting rule this way, requires a lot of modification in the NumPy code. Maybe as an alternative to the current ca

[Numpy-discussion] Segfault for Numpy 1.4.1 on 64-bit CentOS-5

2012-11-16 Thread Tom Aldcroft
For library compatibility testing I'm trying to use numpy 1.4.1 with Python 2.7.3 on a 64-bit CentOS-5 platform. I installed a clean Python from source (basically "./configure --prefix=$prefix ; make install") and then installed numpy 1.4.1 with "python setup.py install". The crash message begins

Re: [Numpy-discussion] float32 to float64 casting

2012-11-16 Thread Nathaniel Smith
On Fri, Nov 16, 2012 at 6:37 AM, Charles R Harris wrote: > On Thu, Nov 15, 2012 at 8:24 PM, Gökhan Sever wrote: >> >> Hello, >> >> Could someone briefly explain why are these two operations are casting my >> float32 arrays to float64? >> >> I1 (np.arange(5, dtype='float32')).dtype >> O1 dtype('fl

Re: [Numpy-discussion] float32 to float64 casting

2012-11-16 Thread Olivier Delalleau
2012/11/16 Olivier Delalleau > 2012/11/16 Charles R Harris > >> >> >> On Thu, Nov 15, 2012 at 11:37 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Thu, Nov 15, 2012 at 8:24 PM, Gökhan Sever wrote: >>> Hello, Could someone briefly explain why are thes

Re: [Numpy-discussion] float32 to float64 casting

2012-11-16 Thread Olivier Delalleau
2012/11/16 Charles R Harris > > > On Thu, Nov 15, 2012 at 8:24 PM, Gökhan Sever wrote: > >> Hello, >> >> Could someone briefly explain why are these two operations are casting my >> float32 arrays to float64? >> >> I1 (np.arange(5, dtype='float32')).dtype >> O1 dtype('float32') >> >> I2 (10*n

Re: [Numpy-discussion] Compiling NumPy on Windows for Python 3.3 with MSVC 2010

2012-11-16 Thread Christoph Gohlke
On 11/16/2012 1:28 AM, Peter Cock wrote: > On Thu, Nov 15, 2012 at 6:15 PM, Christoph Gohlke wrote: >> >> Naturally the file would be named msvc10compiler.py but the name may be >> kept for compatibility reasons. AFAIK msvc10 does not use manifests any >> longer for the CRT dependencies and all th

Re: [Numpy-discussion] Compiling NumPy on Windows for Python 3.3 with MSVC 2010

2012-11-16 Thread Peter Cock
On Thu, Nov 15, 2012 at 6:15 PM, Christoph Gohlke wrote: > > Naturally the file would be named msvc10compiler.py but the name may be > kept for compatibility reasons. AFAIK msvc10 does not use manifests any > longer for the CRT dependencies and all the code handling msvc9 > manifests could be remo