Re: [Numpy-discussion] Time series: lag function

2006-12-27 Thread Vincent Nijs
Sven: I simplified the function to create lags only along axis 0 (see attached). I am using c_ now which seems to play nice with 1- and 2-d array's. The reason I am using 'n = ravel(n)' in the code is that I want to be able to pass integers as well as lists. For example, I want each of the follow

Re: [Numpy-discussion] Time series: lag function

2006-12-27 Thread Sven Schreiber
Vincent Nijs schrieb: > I am tryin to convert some of my time-series code written in Ox to > scipy/numpy (e.g., unit root tests, IRFs, cointegration, etc). Two key > functions I need for this are 'lag' and 'diff'. 'diff' is available but > 'lag' is apparently not. > > Below is my attempt at a lag

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-27 Thread Robert Kern
Christopher Barker wrote: > [EMAIL PROTECTED] wrote: >> I have been working on >> f2py rewrite to support wrapping Fortran 90 types among other F90 >> constructs and as a result we have almost a complete Fortran parser in >> Python. It is relatively easy to use this parser to automatically convert

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-27 Thread Christopher Barker
[EMAIL PROTECTED] wrote: > I have been working on > f2py rewrite to support wrapping Fortran 90 types among other F90 > constructs and as a result we have almost a complete Fortran parser in > Python. It is relatively easy to use this parser to automatically convert > Fortran 77 codes that we have

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-27 Thread pearu
On Wed, 27 Dec 2006, Christopher Barker wrote: > Travis Oliphant wrote: > > It is the > > combination of SciPy+NumPy+Matplotlib+IPython (+ perhaps a good IDE) > > that can succeed at being a MATLAB/IDL replacement for a lot of people. > > > > What is also needed is a good "package" of it al

Re: [Numpy-discussion] Newbie Question, Probability

2006-12-27 Thread Christopher Barker
Travis Oliphant wrote: > It is the > combination of SciPy+NumPy+Matplotlib+IPython (+ perhaps a good IDE) > that can succeed at being a MATLAB/IDL replacement for a lot of people. > What is also needed is a good "package" of it all --- like the Enthon > distribution. This requires quite a

Re: [Numpy-discussion] which fft I should use

2006-12-27 Thread Robert Kern
Gennan Chen wrote: > Hi! all, > > There are so many fft routines in Scipy/Numpy. Does anyone know > which one should be used officially? For maximum portability and speed, use numpy.dual.fft() and its friends. That will use the optimized functions in scipy.fftpack if it is available and n

[Numpy-discussion] which fft I should use

2006-12-27 Thread Gennan Chen
Hi! all, There are so many fft routines in Scipy/Numpy. Does anyone know which one should be used officially? Gen ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Small fix to Numexpr getType()

2006-12-27 Thread Ivan Vilata i Balaguer
Hi all, According to Travis' advice in a prevoius thread (see http://www.mail-archive.com/numpy-discussion%40scipy.org/msg00442.html), I have modified the ``compiler.getType()`` function in Numexpr so that it uses the ``dtype.kind`` attribute instead of ``issubclass()``. The patch is attached. B