Re: [Numpy-discussion] How to improve performance of slow tri*_indices calculations?

2011-01-25 Thread E. Antero Tammi
Hi, On Tue, Jan 25, 2011 at 1:49 AM, josef.p...@gmail.com wrote: On Mon, Jan 24, 2011 at 4:29 PM, eat e.antero.ta...@gmail.com wrote: Hi, Running on: In []: np.__version__ Out[]: '1.5.1' In []: sys.version Out[]: '2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit

Re: [Numpy-discussion] Numexpr giving randomized results on arrays larger than 2047 elements

2011-01-25 Thread Francesc Alted
A Monday 24 January 2011 18:47:58 John Salvatier escrigué: Hello, I have discovered a strange bug with numexpr. numexpr.evaluate gives randomized results on arrays larger than 2047 elements. The following program demonstrates this: from numpy import * from numexpr import evaluate def

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Pierre GM
On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something? Consider the following adapted from here: http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html from StringIO import StringIO import numpy as np data = 1, 2, 3\n4, ,5

[Numpy-discussion] Numpy 2.0 schedule

2011-01-25 Thread Charles R Harris
Hi All, Just thought it was time to start discussing a release schedule for numpy 2.0 so we have something to aim at. I'm thinking sometime in the period April-June might be appropriate. There is a lot coming with the next release: the Enthought's numpy refactoring, Mark's float16 and iterator

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Skipper Seabold
On Tue, Jan 25, 2011 at 11:17 AM, Pierre GM pgmdevl...@gmail.com wrote: On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something?  Consider the following adapted from here: http://docs.scipy.org/doc/numpy/user/basics.io.genfromtxt.html from

[Numpy-discussion] ANN: Numexpr 1.4.2 released

2011-01-25 Thread Francesc Alted
== Announcing Numexpr 1.4.2 == Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like 3*a+4*b) are accelerated and use less memory than doing the same calculation in Python. What's new

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Bruce Southey
On 01/25/2011 10:56 AM, Skipper Seabold wrote: On Tue, Jan 25, 2011 at 11:17 AM, Pierre GMpgmdevl...@gmail.com wrote: On Jan 24, 2011, at 11:47 PM, Skipper Seabold wrote: Am I misreading the docs or missing something? Consider the following adapted from here:

Re: [Numpy-discussion] Numpy 2.0 schedule

2011-01-25 Thread Travis Oliphant
On Jan 25, 2011, at 10:42 AM, Charles R Harris wrote: Hi All, Just thought it was time to start discussing a release schedule for numpy 2.0 so we have something to aim at. I'm thinking sometime in the period April-June might be appropriate. There is a lot coming with the next release:

[Numpy-discussion] Wiener filter / decorrelation

2011-01-25 Thread Daniele Nicolodi
Hello, I'm trying to write a numerical implementation of Wiener filtering / decorrelation (extraction of a signal from noisy time series). What I'm trying to do is the construction of the time domain filter from a measurement of the power spectrum of the noise and the shape of the signal.

Re: [Numpy-discussion] Wiener filter / decorrelation

2011-01-25 Thread Jonathan Rocher
Hi Daniele, I would recommend the Numerical recipes in Fortran 77, obviously not for the language but for its mathematical sections and its discussions of coding algorithms efficiently. Section 13.3 is about wiener filtering with FFT. Hope this helps, Jonathan On Tue, Jan 25, 2011 at 3:04 PM,

Re: [Numpy-discussion] Wiener filter / decorrelation

2011-01-25 Thread Pauli Virtanen
Hi, On Tue, 25 Jan 2011 22:04:42 +0100, Daniele Nicolodi wrote: [clip] However I'm encountering some problems that are beyond my knowledge of the matter. Can someone suggest me a reference text book, or other resource? Scipy-user list would be more appropriate for queries not directly

Re: [Numpy-discussion] Wiener filter / decorrelation

2011-01-25 Thread Daniele Nicolodi
On 25/01/11 22:12, Jonathan Rocher wrote: I would recommend the Numerical recipes in Fortran 77, obviously not for the language but for its mathematical sections and its discussions of coding algorithms efficiently. Section 13.3 is about wiener filtering with FFT. Thank you, Jonathan. I took

Re: [Numpy-discussion] Wiener filter / decorrelation

2011-01-25 Thread Daniele Nicolodi
On 25/01/11 22:20, Pauli Virtanen wrote: However I'm encountering some problems that are beyond my knowledge of the matter. Can someone suggest me a reference text book, or other resource? Scipy-user list would be more appropriate for queries not directly involving Numpy. Sorry. I thought

Re: [Numpy-discussion] bug in genfromtxt with missing values?

2011-01-25 Thread Pierre GM
On Jan 25, 2011, at 9:06 PM, Bruce Southey wrote: Your filling_values is zero so there is this line (1295?) in the code: user_filling_values = filling_values or [] Which of cause presumes your filling_values is not something like 0 or [0]. That's the bug. I forgot that filling_values could