Re: [Numpy-discussion] trailing max

2007-10-30 Thread Pierre GM
On Tuesday 30 October 2007 13:31:41 John Hunter wrote: In financial time series, it is very common to keep track of things like a trailing N day max, trailing N day average, etc. John, Have you ever tried the timeseries package in the scipy SVN ? We (Matt Knox and I) tried to address some of

Re: [Numpy-discussion] trailing max

2007-10-30 Thread Karol Langner
On Tuesday 30 October 2007 13:55, Pierre GM wrote: On Tuesday 30 October 2007 13:31:41 John Hunter wrote: In financial time series, it is very common to keep track of things like a trailing N day max, trailing N day average, etc. John, Have you ever tried the timeseries package in the

Re: [Numpy-discussion] trailing max

2007-10-30 Thread Matt Knox
Pierre GM pgmdevlist at gmail.com writes: On Tuesday 30 October 2007 13:31:41 John Hunter wrote: In financial time series, it is very common to keep track of things like a trailing N day max, trailing N day average, etc. John, Have you ever tried the timeseries package in the scipy

Re: [Numpy-discussion] MTL 4

2007-10-30 Thread Stefan van der Walt
On Tue, Oct 30, 2007 at 10:48:25AM -0600, Charles R Harris wrote: Just a note that an alpha version of the hitherto mostly invisible MTL4 library has been released. It is template based and has automatic bindings to blas. You can download it from http://www.osl.iu.edu/research/mtl/mtl4/. I

[Numpy-discussion] matrix problem: float to matrix power

2007-10-30 Thread Alan G Isaac
1.0**numpy.array([1,2,3]) array([ 1., 1., 1.]) 1.0**numpy.mat([1,2,3]) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported operand type(s) for ** or pow(): 'float' and 'matrix' Why the restriction for matrices? Same question for matrices conformable for