Re: [Numpy-discussion] setting items in a matrix

2007-12-21 Thread Matthieu Brucher
Hi, You can use ones as well if the array (not matrix) has the same values, or the array function to create an array from a sequence, or matrix for matrix and a sequence of sequences a = n.ones((3,5)) * 9 b = n.array((1, 2, 3), (4, 5, 6), (6, 7, 8)) c = n.matrix((1, 2, 3), (4, 5, 6), (6, 7,

[Numpy-discussion] Fwd: SSE2 segfault

2007-12-21 Thread Ondrej Certik
Hi, forwarding more information about the problem + backtrace. Ondrej -- Forwarded message -- From: Jan Medlock [EMAIL PROTECTED] Date: Dec 21, 2007 4:17 AM Subject: Re: Bug#448530: bug reproduced To: Ondrej Certik [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], Kumar Appaiah [EMAIL

Re: [Numpy-discussion] setting items in a matrix

2007-12-21 Thread lorenzo bolla
or, you can either use fill. In [53]: M = numpy.matrix(numpy.zeros((3,5))) In [55]: M.fill(999) In [56]: M Out[56]: matrix([[ 999., 999., 999., 999., 999.], [ 999., 999., 999., 999., 999.], [ 999., 999., 999., 999., 999.]]) L. On 12/21/07, [EMAIL PROTECTED] [EMAIL

Re: [Numpy-discussion] [SciPy-dev] SciPy Sprint results

2007-12-21 Thread Stefan van der Walt
Hi Travis On Thu, Dec 20, 2007 at 05:24:44PM -0600, Travis E. Oliphant wrote: * bool(x) raises a ValueError, as it does for ndarrays. What does bool(x) raise for numpy.core.ma. It now behaves the same way as numpy does, raising a ValueError: In [1]: bool(N.ma.array([0,1]))

Re: [Numpy-discussion] [SciPy-dev] SciPy Sprint results

2007-12-21 Thread Stefan van der Walt
On Fri, Dec 21, 2007 at 10:43:28AM +0200, Stefan van der Walt wrote: On Thu, Dec 20, 2007 at 05:24:44PM -0600, Travis E. Oliphant wrote: * bool(x) raises a ValueError, as it does for ndarrays. What does bool(x) raise for numpy.core.ma. Sorry, I realise you were talking about the old

Re: [Numpy-discussion] [SciPy-dev] SciPy Sprint results

2007-12-21 Thread Stefan van der Walt
On Thu, Dec 20, 2007 at 06:52:38PM -0500, Pierre GM wrote: If we can document exactly what the compatibility issues are (and it looks like we are almost there), we should move forward. OK, I'll take care of that this week-end. Stefan, feel free to beat me to it... A first draft is here:

Re: [Numpy-discussion] segfault with atlas3-sse2, works with atlas3-sse

2007-12-21 Thread Ondrej Certik
On Dec 21, 2007 9:40 AM, Charles R Harris [EMAIL PROTECTED] wrote: On Dec 20, 2007 9:32 AM, Ondrej Certik [EMAIL PROTECTED] wrote: when compiled on Debian, numpy segfaults when used with ATLAS sse2, but works when used against ATLAS sse. More information here: What is the

Re: [Numpy-discussion] Loading a GB file into array

2007-12-21 Thread David Cournapeau
Hans Meine wrote: Am Freitag, 21. Dezember 2007 13:23:49 schrieb David Cournapeau: Instead of saying memmap is ALL about disc access I would rather like to say that memap is all about SMART disk access -- what I mean is that memmap should run as fast as a normal ndarray if it works on the

Re: [Numpy-discussion] Loading a GB file into array

2007-12-21 Thread Charles R Harris
On Dec 21, 2007 6:45 AM, David Cournapeau [EMAIL PROTECTED] wrote: Hans Meine wrote: Am Freitag, 21. Dezember 2007 13:23:49 schrieb David Cournapeau: Instead of saying memmap is ALL about disc access I would rather like to say that memap is all about SMART disk access -- what I mean is

Re: [Numpy-discussion] setting items in a matrix

2007-12-21 Thread Charles R Harris
On Dec 21, 2007 12:37 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i am a beginner with numpy and python,so pardon me if this doubt seems silly i want to create a matrix with say 3 rows and 5 columns..and then set the values of each item in it .for this i did something like below

Re: [Numpy-discussion] [SciPy-dev] SciPy Sprint results

2007-12-21 Thread Eric Firing
Stefan, I think the description of the putmask difference is missing the point. The real difference is not in the way the third argument is handled, or its required shape, but in whether the mask is updated or not. numpy.ma.putmask updates the mask; that is, if it puts something into the

Re: [Numpy-discussion] new P3 binaries for NumPy 1.0.4 and SciPy 0.6.0

2007-12-21 Thread Alan G Isaac
On Thu, 20 Dec 2007, Jarrod Millman apparently wrote: If you are having problems with NumPy and SciPy on Pentium III machines running Windows, please try the newly released binaries: I used the Python 2.5 binaries (.exe) on my home P3 and all seems well in use. I got no failures of