[Numpy-discussion] ANN: PyQwt3D-0.1.6 released

2007-08-07 Thread Gerard Vermeulen
What is PyQwt3D ( http://pyqwt3d.sourceforge.net) ? - it is a set of Python bindings for the QwtPlot3D C++ class library which extends the Qt framework with widgets for 3D data visualization. PyQwt3D inherits the snappy feel from QwtPlot3D. The examples at http://pyqwt.sourceforge.net/pyqwt3

Re: [Numpy-discussion] spurious IndexError?

2007-08-07 Thread Robert Kern
john saponara wrote: > Using numpy-1.0.2/python-2.5/winxp pro sp2: in the following, the only > array is 'a', and I'm not using it as an index, so why do I get the > IndexError below? > > --- start python session --- > >>> a=array([[1,3],[2,4]]) > >>> a > array([[1, 3], > [2, 4]]) >

[Numpy-discussion] spurious IndexError?

2007-08-07 Thread john saponara
Using numpy-1.0.2/python-2.5/winxp pro sp2: in the following, the only array is 'a', and I'm not using it as an index, so why do I get the IndexError below? --- start python session --- >>> a=array([[1,3],[2,4]]) >>> a array([[1, 3], [2, 4]]) >>> f=lambda i,j: a[i,j] >>> f(1,1) 4 >

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-07 Thread Charles R Harris
On 8/6/07, Anne Archibald <[EMAIL PROTECTED]> wrote: > > On 06/08/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > > > Well, when I proposed the SIMD extension, I was willing to implement the > > proposal, and this was for a simple goal: enabling better integration > > with many numeric libraries

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Nils Wagner
Alan G Isaac wrote: > On Tue, 07 Aug 2007, Nils Wagner apparently wrote: > >> I have a list of integer numbers. The entries can vary between 0 and 19. >> How can I count the occurrence of any number. Consider >> >>> data >> [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9,

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Alan G Isaac
By the way, you can get all the frequencies pretty fast using a defaultdict: http://docs.python.org/lib/defaultdict-examples.html Cheers, Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listi

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Alan G Isaac
On Tue, 07 Aug 2007, Nils Wagner apparently wrote: > I have a list of integer numbers. The entries can vary between 0 and 19. > How can I count the occurrence of any number. Consider > >>> data > [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9, 7, 9, > 7, 8, 9, 8, 7, 9] >

Re: [Numpy-discussion] Count the occurrence of a certain in teger in a list of integers

2007-08-07 Thread volker
Keith Goodman gmail.com> writes: > > On 8/7/07, Keith Goodman gmail.com> wrote: > > On 8/7/07, Nils Wagner iam.uni-stuttgart.de> wrote: > > > I have a list of integer numbers. The entries can vary between 0 and 19. > > > How can I count the occurrence of any number. Consider > > > > > > >>> d

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Robert Cimrman
Nils Wagner wrote: > Hi all, > > I have a list of integer numbers. The entries can vary between 0 and 19. > How can I count the occurrence of any number. Consider > > >>> data > [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9, 7, 9, > 7, 8, 9, 8, 7, 9] > > > Is there a be

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Keith Goodman
On 8/7/07, Keith Goodman <[EMAIL PROTECTED]> wrote: > On 8/7/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > > I have a list of integer numbers. The entries can vary between 0 and 19. > > How can I count the occurrence of any number. Consider > > > > >>> data > > [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6,

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Keith Goodman
On 8/7/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > I have a list of integer numbers. The entries can vary between 0 and 19. > How can I count the occurrence of any number. Consider > > >>> data > [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9, 7, 9, > 7, 8, 9, 8, 7, 9] > >

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Matthieu Brucher
You can try using hist() with the correct range and number of bins. Matthieu 2007/8/7, Nils Wagner <[EMAIL PROTECTED]>: > > Hi all, > > I have a list of integer numbers. The entries can vary between 0 and 19. > How can I count the occurrence of any number. Consider > > >>> data > [9, 6, 9, 6, 7,

[Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Nils Wagner
Hi all, I have a list of integer numbers. The entries can vary between 0 and 19. How can I count the occurrence of any number. Consider >>> data [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9, 7, 9, 7, 8, 9, 8, 7, 9] Is there a better way than using, e.g. >>> shape(wher

Re: [Numpy-discussion] fourier with single precision

2007-08-07 Thread Lars Friedrich
Thank you for your comments! I will try this fftw3-scipy approach and see how much faster I can get. Maybe this is enough for me...? Lars ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-disc

[Numpy-discussion] ANN: PyQwt3D-0.1.5 released

2007-08-07 Thread Gerard Vermeulen
What is PyQwt3D ( http://pyqwt3d.sourceforge.net) ? - it is a set of Python bindings for the QwtPlot3D C++ class library which extends the Qt framework with widgets for 3D data visualization. PyQwt3D inherits the snappy feel from QwtPlot3D. The examples at http://pyqwt.sourceforge.net/pyqwt3