Re: [Numpy-discussion] Core math library in numpy

2009-02-25 Thread Charles R Harris
On Wed, Feb 25, 2009 at 11:54 PM, David Cournapeau wrote: > On Tue, Feb 24, 2009 at 7:01 AM, Charles R Harris > wrote: > > > > > > On Mon, Feb 23, 2009 at 2:02 PM, David Cournapeau > > wrote: > >> > >> On Fri, Feb 20, 2009 at 5:26 PM, Pauli Virtanen wrote: > >> > Fri, 20 Feb 2009 01:05:03 +0900

Re: [Numpy-discussion] Core math library in numpy

2009-02-25 Thread David Cournapeau
On Tue, Feb 24, 2009 at 7:01 AM, Charles R Harris wrote: > > > On Mon, Feb 23, 2009 at 2:02 PM, David Cournapeau > wrote: >> >> On Fri, Feb 20, 2009 at 5:26 PM, Pauli Virtanen wrote: >> > Fri, 20 Feb 2009 01:05:03 +0900, David Cournapeau wrote: >> > [clip] >> >>> I think they should be. Then we

Re: [Numpy-discussion] Question on lstsq and correlation coeff

2009-02-25 Thread Keith Goodman
On Wed, Feb 25, 2009 at 3:21 PM, Anthony Kong wrote: > I trying to use scipy/numpy in a finanical context. I want to compute the > correlation coeff of two series (returns vs index returns). I tried two > appoarches > > Firstly, > > from scipy.linalg import lstsq > coeffs,a,b,c = lstsq(matrix, ret

Re: [Numpy-discussion] Question on lstsq and correlation coeff

2009-02-25 Thread Anthony Kong
Hi, Josef, Thanks very much for the quick and helpful response. Could you also comment on the use of lstsq(): Why it leads to inconsistent result? Cheers, Anthony -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of jos

Re: [Numpy-discussion] Question on lstsq and correlation coeff

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 6:21 PM, Anthony Kong wrote: > Hi, all, > > It is probably a newbie question. > > I trying to use scipy/numpy in a finanical context. I want to compute the > correlation coeff of two series (returns vs index returns). I tried two > appoarches > > Firstly, > > from scipy.lin

[Numpy-discussion] Question on lstsq and correlation coeff

2009-02-25 Thread Anthony Kong
Hi, all, It is probably a newbie question. I trying to use scipy/numpy in a finanical context. I want to compute the correlation coeff of two series (returns vs index returns). I tried two appoarches Firstly, from scipy.linalg import lstsq coeffs,a,b,c = lstsq(matrix, returns) # matrix con

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 1:37 PM, Kim Hansen wrote: >> I just looked under "set routines" in the help file. I really like the >> speed of the windows help file. > > Is there a Numpy windows help file? > > Cool! > > But where is it? I can't find it in  my numpy 1.2.1 installation?!? > > I like the P

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
> I just looked under "set routines" in the help file. I really like the > speed of the windows help file. Is there a Numpy windows help file? Cool! But where is it? I can't find it in my numpy 1.2.1 installation?!? I like the Python 2.5 Windows help file too and I agree it is a fast and effic

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 9:02 AM, Kim Hansen wrote: > Yes, this is exactly what I was after, only the function name did not > ring a bell (I still cannot associate it with something meaningful for > my use case). Thanks! > > -- Slaunger > I just looked under "set routines" in the help file. I real

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
Yes, this is exactly what I was after, only the function name did not ring a bell (I still cannot associate it with something meaningful for my use case). Thanks! -- Slaunger 2009/2/25 : > On Wed, Feb 25, 2009 at 7:28 AM, Kim Hansen wrote: >> Hi Numpy discussions >> Quite often I find myself wa

Re: [Numpy-discussion] Numpy array in iterable

2009-02-25 Thread josef . pktd
On Wed, Feb 25, 2009 at 7:28 AM, Kim Hansen wrote: > Hi Numpy discussions > Quite often I find myself wanting to generate a boolean mask for fancy > slicing of some array, where the mask itself is generated by checking > if its value has one of several relevant values (corresponding to > states) >

[Numpy-discussion] Numpy array in iterable

2009-02-25 Thread Kim Hansen
Hi Numpy discussions Quite often I find myself wanting to generate a boolean mask for fancy slicing of some array, where the mask itself is generated by checking if its value has one of several relevant values (corresponding to states) So at the the element level thsi corresponds to checking if ele

Re: [Numpy-discussion] denormal test: what is it for ?

2009-02-25 Thread Ondrej Certik
On Tue, Feb 17, 2009 at 8:08 AM, David Cournapeau wrote: > Hi, > > I would like to continue cleaning the setup.py from numpy/core, and > there is one test that I can't make sense of: the denormal thing > (testcode_mathlib function). The svn log has no information on it (its > presence goes back to

Re: [Numpy-discussion] Problem looping over numpy array in C

2009-02-25 Thread Ondrej Certik
On Fri, Feb 20, 2009 at 12:19 PM, Sumant S.R. Oemrawsingh wrote: > Hi guys, > > I have a problem with looping over numpy arrays in C. I modify the array > in-place (and return None), but after modification, the array doesn't seem > to play nice any more. > > Below, I have the C code for a function

Re: [Numpy-discussion] Core math library in numpy

2009-02-25 Thread Matthieu Brucher
(AFAIK, inline is not a > modification of the signature). Indeed, even more so for C. Matthieu -- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn: http://www.linkedin.com/in/matthi