Re: [Numpy-discussion] where to ship libnpymath.a ?

2010-12-13 Thread Sandro Tosi
Hi, On Mon, Dec 13, 2010 at 22:05, Pauli Virtanen wrote: > On Mon, 13 Dec 2010 20:51:56 +0100, Sandro Tosi wrote: > [clip] >> So, back to the original question: where should I put libnpymath.a to be >> useful for our users (main request: new scipy)? maybe in >> /numpy/core/lib/ ? > > In the p

Re: [Numpy-discussion] Output dtype

2010-12-13 Thread Bruce Southey
On Mon, Dec 13, 2010 at 4:53 PM, Keith Goodman wrote: > On Mon, Dec 13, 2010 at 12:20 PM, Bruce Southey wrote: > >> Unless something has changed since the docstring was written, this is >> probably an inherited 'bug' from np.mean() as the author expected that >> the docstring of mean was correct.

Re: [Numpy-discussion] Output dtype

2010-12-13 Thread Keith Goodman
On Mon, Dec 13, 2010 at 12:20 PM, Bruce Southey wrote: > Unless something has changed since the docstring was written, this is > probably an inherited 'bug' from np.mean() as the author expected that > the docstring of mean was correct. For my 'old' 2.0 dev version: > >  >>> np.mean( np.array([[0

[Numpy-discussion] same name and title in structured arrays

2010-12-13 Thread Kathleen M Tacina
Hi, I've been finding numpy/scipy/matplotlib a very useful tool for data analysis. However, a recent change has caused me some problems. Numpy used to allow the name and title of a column of a structured array or recarray to be the same (at least in the svn version as of early last winter). Now

Re: [Numpy-discussion] where to ship libnpymath.a ?

2010-12-13 Thread Pauli Virtanen
On Mon, 13 Dec 2010 20:51:56 +0100, Sandro Tosi wrote: [clip] > So, back to the original question: where should I put libnpymath.a to be > useful for our users (main request: new scipy)? maybe in > /numpy/core/lib/ ? In the place pointed to by npymath.ini, which is where "python setup.py inst

Re: [Numpy-discussion] Output dtype

2010-12-13 Thread Keith Goodman
On Mon, Dec 13, 2010 at 12:20 PM, Bruce Southey wrote: > On 12/13/2010 11:59 AM, Keith Goodman wrote: >> > From the np.median doc string: "If the input contains integers, or >> floats of smaller precision than 64, then the output data-type is >> float64." >> arr = np.array([[0,1,2,3,4,5]], dt

Re: [Numpy-discussion] Output dtype

2010-12-13 Thread Bruce Southey
On 12/13/2010 11:59 AM, Keith Goodman wrote: > > From the np.median doc string: "If the input contains integers, or > floats of smaller precision than 64, then the output data-type is > float64." > >>> arr = np.array([[0,1,2,3,4,5]], dtype='float32') >>> np.median(arr, axis=0).dtype > dtype('fl

[Numpy-discussion] where to ship libnpymath.a ?

2010-12-13 Thread Sandro Tosi
Hi, in Debian we had a bug report[1] requesting to ship libnpymath.a . [1] http://bugs.debian.org/596987 Our python packaging tools doesn't handle .a files, so I'd like to ask you where exactly should I ship that file. In the build directory I have: $ find . -name "*.a" | xargs md5sum 4c2371b98c

[Numpy-discussion] Output dtype

2010-12-13 Thread Keith Goodman
>From the np.median doc string: "If the input contains integers, or floats of smaller precision than 64, then the output data-type is float64." >> arr = np.array([[0,1,2,3,4,5]], dtype='float32') >> np.median(arr, axis=0).dtype dtype('float32') >> np.median(arr, axis=1).dtype dtype('float32'