Re: [Numpy-discussion] Strange behaviour with for loops + numpy arrays

2011-01-17 Thread Stefan Reiterer
Thanks that was the problem! You never stop to learn =) Original-Nachricht > Datum: Mon, 17 Jan 2011 18:22:17 +0100 > Von: Francesc Alted > An: Discussion of Numerical Python > Betreff: Re: [Numpy-discussion] Strange behaviour with for loops + numpy > arr

Re: [Numpy-discussion] Strange behaviour with for loops + numpy arrays

2011-01-17 Thread Francesc Alted
A Monday 17 January 2011 17:02:43 Stefan Reiterer escrigué: > Hi all! > > I made some "performance" tests with numpy to compare numpy on one > cpu with mpi on 4 processesors, and something appears quite strange > to me: > > I have the following code: > > N = 2**10*4 > K = 16000 > > x = numpy.ra

[Numpy-discussion] Strange behaviour with for loops + numpy arrays

2011-01-17 Thread Stefan Reiterer
Hi all! I made some "performance" tests with numpy to compare numpy on one cpu with mpi on 4 processesors, and something appears quite strange to me: I have the following code: N = 2**10*4 K = 16000 x = numpy.random.randn(N).astype(numpy.float32) x *= 10**10 print "x:", x t1 = time.time() #do