[Numpy-discussion] Problem with correlate

2009-05-31 Thread rob steed
Hi, After my previous email, I have opened a ticket #1117 (correlate not order dependent) I have found that the correlate function is defined in multiarraymodule.c and that inputs are being swapped using the following code n1 = ap1-dimensions[0]; n2 = ap2-dimensions[0]; if (n1 n2)

[Numpy-discussion] resetting set_string_function

2009-05-31 Thread Ralf Gommers
Hi, There seems to be a bug in set_string_function when resetting the formatting function to the default. After doing that the dtype of the array that is printed is the character string, not the numpy type. Example: In [1]: a=arange(10, dtype=uint16) In [2]: a Out[2]: array([0, 1, 2, 3, 4, 5,

[Numpy-discussion] Rasterizing points onto an array

2009-05-31 Thread Thomas Robitaille
Hi, I have a set of n points with real coordinates between 0 and 1, given by two numpy arrays x and y, with a value at each point represented by a third array z. I am trying to then rasterize the points onto a grid of size npix*npix. So I can start by converting x and y to integer pixel

Re: [Numpy-discussion] Problem with correlate

2009-05-31 Thread David Cournapeau
Charles R Harris wrote: On Sun, May 31, 2009 at 11:54 AM, rob steed rjst...@talk21.com mailto:rjst...@talk21.com wrote: Hi, After my previous email, I have opened a ticket #1117 (correlate not order dependent) I have found that the correlate function is defined in

Re: [Numpy-discussion] Problem with correlate

2009-05-31 Thread Charles R Harris
On Sun, May 31, 2009 at 7:18 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Charles R Harris wrote: On Sun, May 31, 2009 at 11:54 AM, rob steed rjst...@talk21.com mailto:rjst...@talk21.com wrote: Hi, After my previous email, I have opened a ticket #1117

Re: [Numpy-discussion] Problem with correlate

2009-05-31 Thread David Cournapeau
Charles R Harris wrote: On Sun, May 31, 2009 at 7:18 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp mailto:da...@ar.media.kyoto-u.ac.jp wrote: Charles R Harris wrote: On Sun, May 31, 2009 at 11:54 AM, rob steed rjst...@talk21.com mailto:rjst...@talk21.com

Re: [Numpy-discussion] Problem with correlate

2009-05-31 Thread Charles R Harris
On Sun, May 31, 2009 at 9:08 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Charles R Harris wrote: On Sun, May 31, 2009 at 7:18 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp mailto:da...@ar.media.kyoto-u.ac.jp wrote: Charles R Harris wrote:

Re: [Numpy-discussion] Problem with correlate

2009-05-31 Thread David Cournapeau
Charles R Harris wrote: On Sun, May 31, 2009 at 9:08 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp mailto:da...@ar.media.kyoto-u.ac.jp wrote: Charles R Harris wrote: On Sun, May 31, 2009 at 7:18 PM, David Cournapeau da...@ar.media.kyoto-u.ac.jp