Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-14 Thread David Cournapeau
Achim Gaedke wrote: > Hello everybody! > > Please have a look at the program below: > > # start > import numpy > > t_array=numpy.ones(2048, dtype=numpy.float32) > sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) > sinc_array[(t_array > 0.)]=1.0 > # end > > If you execute this program, it

[Numpy-discussion] list as array item and casting problem problem

2007-11-14 Thread Gen-Nan Chen
Hi! All, I have below strange behavior in numpy. Can anyone shed some light on this: I have an array with each item as a list object. You will get this when you use scipy.sparse In [369]: k Out[369]: array([[0], [1], [2], [3], [4], [5], [6], [7], [8], [9]], dtype=object) Assigning value by usin

Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-14 Thread Nils Wagner
On Wed, 14 Nov 2007 19:31:38 +0100 Achim Gaedke <[EMAIL PROTECTED]> wrote: > Hello everybody! > > Please have a look at the program below: > > # start > import numpy > > t_array=numpy.ones(2048, dtype=numpy.float32) > sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) > sinc_array[(t

[Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-14 Thread Achim Gaedke
Hello everybody! Please have a look at the program below: # start import numpy t_array=numpy.ones(2048, dtype=numpy.float32) sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) sinc_array[(t_array > 0.)]=1.0 # end If you execute this program, it crashes with Segmentation Fault or *** gl

Re: [Numpy-discussion] how to assign to a "sub set" of an array

2007-11-14 Thread Sebastian Haase
On Nov 14, 2007 5:59 PM, Timothy Hochberg <[EMAIL PROTECTED]> wrote: > > > > On Nov 14, 2007 9:08 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > > Hi, > > First here is some test I ran, where I think the last command shows a bug: > > > > >>> a = N.arange(4); a.shape=2,2; a > > [[0 1] > > [2 3]]

[Numpy-discussion] [ANN] Release of the first PyTables video

2007-11-14 Thread Ivan Vilata i Balaguer
= Release of the first PyTables video = `Carabos `_ is very proud to announce the first of a series of videos dedicated to introducing the main features of PyTables to the public in a visual and easy

Re: [Numpy-discussion] how to assign to a "sub set" of an array

2007-11-14 Thread Timothy Hochberg
On Nov 14, 2007 9:08 AM, Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi, > First here is some test I ran, where I think the last command shows a bug: > > >>> a = N.arange(4); a.shape=2,2; a > [[0 1] > [2 3]] > >>> aa = N.array((a,a,a)); aa > [[[0 1] > [2 3]] > > [[0 1] > [2 3]] > > [[0 1] >

[Numpy-discussion] how to assign to a "sub set" of an array

2007-11-14 Thread Sebastian Haase
Hi, First here is some test I ran, where I think the last command shows a bug: >>> a = N.arange(4); a.shape=2,2; a [[0 1] [2 3]] >>> aa = N.array((a,a,a)); aa [[[0 1] [2 3]] [[0 1] [2 3]] [[0 1] [2 3]]] >>> N.nonzero(a==0) ([0], [0]) >>> aa[N.nonzero(a==0)] = 5,5; aa [[[5 544434

Re: [Numpy-discussion] Problem with numpy.linalg.eig?

2007-11-14 Thread David Cournapeau
Keith Goodman wrote: > On Nov 13, 2007 8:42 PM, David Cournapeau <[EMAIL PROTECTED]> wrote: >> >> Here we are: >> >> http://www.ar.media.kyoto-u.ac.jp/members/david/archives/numpy-1.0.4.win32-py2.4.exe > > Thank you. He said it worked. He didn't even notice a slow down > without ATLAS. On some calc

Re: [Numpy-discussion] Problem with numpy.linalg.eig?

2007-11-14 Thread Keith Goodman
On Nov 13, 2007 8:42 PM, David Cournapeau <[EMAIL PROTECTED]> wrote: > > Keith Goodman wrote: > > On Nov 12, 2007 10:51 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > > > >> On Nov 13, 2007 3:37 AM, Keith Goodman <[EMAIL PROTECTED]> wrote: > >> > >>> On Nov 12, 2007 10:10 AM, Peter Creasey <[EMA

Re: [Numpy-discussion] Proposing Ubiquity

2007-11-14 Thread dieter h.
On Nov 13, 2007 12:52 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > > dieter h. wrote: > > Hi all, > > > > Would it make sense for all functionality in Numpy/Scipy to have > > ubiquitous returns? In that I'm proposing that every func/method > > (where appropriate) have a flag in its arg list establi