Re: [Numpy-discussion] Cross-correlation PR stuck in limbo

2016-05-27 Thread Jaime Fernández del Río
I did an overall review of the code a couple of weeks ago (see the PR for details), and there is quite some work to be done before we can merge Honi's code. But if he can find the time to work on the coding, I'll try to be more diligent about the reviewing. Jaime On Fri, May 27, 2016 at 12:51 PM,

Re: [Numpy-discussion] Cross-correlation PR stuck in limbo

2016-05-27 Thread Elliot Hallmark
+1 This would really help with large data sets in certain situations. Is there still disagreement about whether this should be included? Or are there some minor details still? Or just lost in the shuffle? Hopefully, Elliot On Wed, May 4, 2016 at 7:07 AM, Pierre Haessig wrote: > Hi, > > I do

Re: [Numpy-discussion] Cross-correlation PR stuck in limbo

2016-05-04 Thread Pierre Haessig
Hi, I don't know how to push the PR forward, but all I can say is that this maxlag feature would be a major improvement for using Numpy in time series analysis! Immediate benefits downstream for Matplotlib and statsmodel. Thanks Honi for having taken the time to implement this! best, Pierre ___

[Numpy-discussion] Cross-correlation PR stuck in limbo

2016-05-03 Thread Honi Sanders
Hello all, I have completed a pull request to add a “maxlag” functionality to numpy.correlate. See here: https://github.com/numpy/numpy/pull/5978 . This pull request has passed all tests and has been ready to be merged for around six months. Several p

[Numpy-discussion] cross platform build issue: powerpc-e500v2-linux-gnuspe-gcc: error: unrecognized argument in option '-mtune=generic'

2015-12-15 Thread jo
Hi I am trying to do a cross platform build of numpy (host=x86 target=ppc). This worked for python compiler itself but for numpy I run into following problem. It does select the correct compiler but the options are not correct. please advise...  numpy-1.10.2rc2]$ CC=powerpc-e500v2-linux-gnusp

[Numpy-discussion] cross compile numpy

2015-09-10 Thread chenc...@inhand.com.cn
hi: I have to use numpy package. My python runs on my embedded arm device. So, how do i cross compile numpy? ps: my embedded arm device supports floating point operation. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://

Re: [Numpy-discussion] Cross-covariance function

2012-02-01 Thread Pierre Haessig
Hi Bruce, Sorry for the delay in the answer. Le 27/01/2012 17:28, Bruce Southey a écrit : > The output is still a covariance so do we really need yet another set > of very similar functions to maintain? > Or can we get away with a new keyword? > The idea of an additional keyword seems appealing.

Re: [Numpy-discussion] Cross-covariance function

2012-01-27 Thread Bruce Southey
On 01/27/2012 09:00 AM, Benjamin Root wrote: On Friday, January 27, 2012, Pierre Haessig > wrote: > Le 26/01/2012 19:19, josef.p...@gmail.com a écrit : >> The discussion had this reversed, numpy matches the behavior of >> MATLAB,

Re: [Numpy-discussion] Cross-covariance function

2012-01-27 Thread Benjamin Root
On Friday, January 27, 2012, Pierre Haessig wrote: > Le 26/01/2012 19:19, josef.p...@gmail.com a écrit : >> The discussion had this reversed, numpy matches the behavior of >> MATLAB, while R (statistics) only returns the cross covariance part as >> proposed. >> > I would also say that there was an

Re: [Numpy-discussion] Cross-covariance function

2012-01-27 Thread Pierre Haessig
Le 26/01/2012 19:19, josef.p...@gmail.com a écrit : > The discussion had this reversed, numpy matches the behavior of > MATLAB, while R (statistics) only returns the cross covariance part as > proposed. > I would also say that there was an attempt to match MATLAB behavior. However, there is big di

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Bruce Southey
On Thu, Jan 26, 2012 at 6:43 PM, wrote: > On Thu, Jan 26, 2012 at 3:58 PM, Bruce Southey wrote: >> On Thu, Jan 26, 2012 at 12:45 PM,   wrote: >>> On Thu, Jan 26, 2012 at 1:25 PM, Bruce Southey wrote: On Thu, Jan 26, 2012 at 10:07 AM, Pierre Haessig wrote: > Le 26/01/2012 15:57, B

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread josef . pktd
On Thu, Jan 26, 2012 at 3:58 PM, Bruce Southey wrote: > On Thu, Jan 26, 2012 at 12:45 PM,   wrote: >> On Thu, Jan 26, 2012 at 1:25 PM, Bruce Southey wrote: >>> On Thu, Jan 26, 2012 at 10:07 AM, Pierre Haessig >>> wrote: Le 26/01/2012 15:57, Bruce Southey a écrit : > Can you please provi

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Bruce Southey
On Thu, Jan 26, 2012 at 12:45 PM, wrote: > On Thu, Jan 26, 2012 at 1:25 PM, Bruce Southey wrote: >> On Thu, Jan 26, 2012 at 10:07 AM, Pierre Haessig >> wrote: >>> Le 26/01/2012 15:57, Bruce Southey a écrit : Can you please provide a couple of real examples with expected output that cl

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread josef . pktd
On Thu, Jan 26, 2012 at 1:25 PM, Bruce Southey wrote: > On Thu, Jan 26, 2012 at 10:07 AM, Pierre Haessig > wrote: >> Le 26/01/2012 15:57, Bruce Southey a écrit : >>> Can you please provide a >>> couple of real examples with expected output that clearly show what >>> you want? >>> >> Hi Bruce, >>

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Bruce Southey
On Thu, Jan 26, 2012 at 10:07 AM, Pierre Haessig wrote: > Le 26/01/2012 15:57, Bruce Southey a écrit : >> Can you please provide a >> couple of real examples with expected output that clearly show what >> you want? >> > Hi Bruce, > > Thanks for your ticket feedback ! It's precisely because I see a

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread josef . pktd
On Thu, Jan 26, 2012 at 12:26 PM, Sturla Molden wrote: > Den 26.01.2012 17:25, skrev Pierre Haessig: >> However, in the case this change is not possible, I would see this >> solution : >> * add and xcov function that does what Elliot and Sturla and I >> described, because > > The current np.cov im

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Sturla Molden
Den 26.01.2012 17:25, skrev Pierre Haessig: > However, in the case this change is not possible, I would see this > solution : > * add and xcov function that does what Elliot and Sturla and I > described, because The current np.cov implementation returns the cross-covariance the way it is commonly

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Pierre Haessig
Le 26/01/2012 16:50, Pauli Virtanen a écrit : > the current behavior is not a bug, I completely agree that numpy.cov(m,y) does what it says ! I (and apparently some other people) are only questioning why there is such a behavior ? Indeed, the second variable `y` is presented as "An additional se

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Pierre Haessig
Le 26/01/2012 15:57, Bruce Southey a écrit : > Can you please provide a > couple of real examples with expected output that clearly show what > you want? > Hi Bruce, Thanks for your ticket feedback ! It's precisely because I see a big potential impact of the proposed change that I send first a ML

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Pauli Virtanen
26.01.2012 15:57, Bruce Southey kirjoitti: [clip] > Also I believe that changing the np.cov > function will cause major havoc because numpy and people's code depend > on the current behavior. Changing the behavior of `cov` is IMHO not really possible at this point --- the current behavior is not a

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Bruce Southey
On Thu, Jan 26, 2012 at 7:19 AM, Pierre Haessig wrote: > Le 22/01/2012 01:40, josef.p...@gmail.com a écrit : >> same here, >> When I rewrote scipy.stats.spearmanr, I matched the numpy behavior for >> two arrays, while R only returns the cross-correlation part. > Since I've seen no negative feedbac

Re: [Numpy-discussion] Cross-covariance function

2012-01-26 Thread Pierre Haessig
Le 22/01/2012 01:40, josef.p...@gmail.com a écrit : > same here, > When I rewrote scipy.stats.spearmanr, I matched the numpy behavior for > two arrays, while R only returns the cross-correlation part. Since I've seen no negative feedback, I jumped to the next step by creating a Trac account and po

Re: [Numpy-discussion] Cross-covariance function

2012-01-21 Thread josef . pktd
On Sat, Jan 21, 2012 at 6:26 PM, John Salvatier wrote: > I ran into this a while ago and was confused why cov did not behave the way > pierre suggested. same here, When I rewrote scipy.stats.spearmanr, I matched the numpy behavior for two arrays, while R only returns the cross-correlation part.

Re: [Numpy-discussion] Cross-covariance function

2012-01-21 Thread John Salvatier
I ran into this a while ago and was confused why cov did not behave the way pierre suggested. On Jan 21, 2012 12:48 PM, "Elliot Saba" wrote: > Thank you Sturla, that's exactly what I want. > > I'm sorry that I was not able to reply for so long, but Pierre's code is > similar to what I have alread

Re: [Numpy-discussion] Cross-covariance function

2012-01-21 Thread Elliot Saba
Thank you Sturla, that's exactly what I want. I'm sorry that I was not able to reply for so long, but Pierre's code is similar to what I have already implemented, and I am in support of changing the functionality of cov(). I am unaware of any arguments for a covariance function that works in this

Re: [Numpy-discussion] Cross-covariance function

2012-01-20 Thread Pierre Haessig
Le 20/01/2012 16:30, Sturla Molden a écrit : > Often we just want the upper-right p x p quadrant. Thanks for the explanation. If I understood it correctly, you're interested in the *cross*-covariance block of the matrix (and now I understand better Elliot's message). Actually, I thought that was th

Re: [Numpy-discussion] Cross-covariance function

2012-01-20 Thread Sturla Molden
Den 20.01.2012 13:39, skrev Pierre Haessig: > I don't see how does your function relates to numpy.cov [1]. Is it an > "extended case" function or is there a difference in the underlying math ? > If X is rank n x p, then np.cov(X, rowvar=False) is equal to S after cX = X - X.mean(axis=0)[np.n

Re: [Numpy-discussion] Cross-covariance function

2012-01-20 Thread Pierre Haessig
Hi Eliot, Le 19/01/2012 07:50, Elliot Saba a écrit : > I recently needed to calculate the cross-covariance of two random > vectors, (e.g. I have two matricies, X and Y, the columns of which are > observations of one variable, and I wish to generate a matrix pairing > each value of X and Y) I d

[Numpy-discussion] Cross-covariance function

2012-01-18 Thread Elliot Saba
Greetings, I recently needed to calculate the cross-covariance of two random vectors, (e.g. I have two matricies, X and Y, the columns of which are observations of one variable, and I wish to generate a matrix pairing each value of X and Y) and so I wrote a small utility function to do so, and I'd

Re: [Numpy-discussion] Cross-Compiling Numpy for NAO

2011-11-08 Thread Chris.Barker
On 11/7/11 10:16 AM, Carlos Neves wrote: > I am a robotics student and I have used numpy to develop a controller > for a humanoid robot. Now I am trying to implement the same controller > to a different robot, NAO - http://www.aldebaran-robotics.com/ > This robot has a Linux based OS with Python 2.

Re: [Numpy-discussion] Cross-Compiling Numpy for NAO

2011-11-07 Thread David Cournapeau
On Mon, Nov 7, 2011 at 6:16 PM, Carlos Neves wrote: > Hello everyone, > > I am a robotics student and I have used numpy to develop a controller for a > humanoid robot. Now I am trying to implement the same controller to a > different robot, NAO - http://www.aldebaran-robotics.com/ > This robot has

[Numpy-discussion] Cross-Compiling Numpy for NAO

2011-11-07 Thread Carlos Neves
Hello everyone, I am a robotics student and I have used numpy to develop a controller for a humanoid robot. Now I am trying to implement the same controller to a different robot, NAO - http://www.aldebaran-robotics.com/ This robot has a Linux based OS with Python 2.6.4. Since the goal is to im

[Numpy-discussion] Cross compile flags for tdm-gcc on mingw

2011-03-09 Thread Jonathan Wright
Hi folks, I was compiling some extensions for 32-bit python 2.5 on windows using a 64 bit gcc compiler (4.5.1). After a bit of head scratching it seems that I needed to patch numpy/distutils/mingw32ccompiler.py to add the following flags around where it says "set_executables": -m32 -static-libgc

Re: [Numpy-discussion] CROSS-COMPILING NUMPY

2009-02-26 Thread David Cournapeau
On Tue, Feb 17, 2009 at 12:37 PM, David Cournapeau wrote: > Also, some configuration tests need to be executed on the target > machine: this needs to be fixed. Ok, that one at least is fixed. Now, the numpy configuration stage does not need to execute anything on the target platform. All the tes

Re: [Numpy-discussion] CROSS-COMPILING NUMPY

2009-02-16 Thread David Cournapeau
On Tue, Feb 17, 2009 at 12:23 AM, Yepez, Esteban wrote: > Are there any patches from previous versions? Do you mean for python itself or numpy ? For numpy, not that I know of. For old python, there are some patches in the tracker, but none of it has been integrated AFAIK. > Can provide any other

Re: [Numpy-discussion] CROSS-COMPILING NUMPY

2009-02-16 Thread Yepez, Esteban
Are there any patches from previous versions? Can provide any other suggestions? On 2/15/09 12:30 AM, "David Cournapeau" wrote: Yepez, Esteban wrote: > Hello, > > I have having a hard time finding more information to help me, so I > thought I'd ping you both. > > I need to x-compile numpy for a

Re: [Numpy-discussion] CROSS-COMPILING NUMPY

2009-02-14 Thread David Cournapeau
Yepez, Esteban wrote: > Hello, > > I have having a hard time finding more information to help me, so I > thought I'd ping you both. > > I need to x-compile numpy for a new processor. I have a toolchain, and > have x-compiled python2.5.4, boost1.37,swig1.38. I just can't figure > out how to x-co

[Numpy-discussion] CROSS-COMPILING NUMPY

2009-02-14 Thread Yepez, Esteban
Hello, I have having a hard time finding more information to help me, so I thought I'd ping you both. I need to x-compile numpy for a new processor. I have a toolchain, and have x-compiled python2.5.4, boost1.37,swig1.38. I just can't figure out how to x-compile numpy. Now I had to play many t

Re: [Numpy-discussion] cross product of two vectors as sets

2008-09-11 Thread Alan G Isaac
Set product could be produced as:: dp = list((xi,yi) for xi in x for yi in y) dpasarray = np.array(dp) but unless you really need the array, you can use a generator. Alan Isaac ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://

[Numpy-discussion] cross product of two vectors as sets

2008-09-11 Thread Uwe Schmitt
Hi, I want to calculate the crossproduct (from set theory, not vectorspace crossproduct) of two vectors x,y. My method is as follows: >>> x = array([1,2,3]) >>> y = array([4,5]) >>> xx, yy = meshgrid(x,y) >>> array(zip(xx.flatten(), yy.flatten())) array([[1, 4], [2, 4], [3, 4]

Re: [Numpy-discussion] cross

2008-03-03 Thread Lisandro Dalcin
On 3/3/08, Revaz Yves <[EMAIL PROTECTED]> wrote: > I'm computing the cross product of positions and velocities of n points > in a 3d space. > Using the numpy function "cross", this can be written as : > I compare the computation time needed with a C-api I wrote (dedicated to > this operation).

[Numpy-discussion] cross

2008-03-03 Thread Revaz Yves
Dear List, I'm computing the cross product of positions and velocities of n points in a 3d space. Using the numpy function "cross", this can be written as : n=1000 pos = random.random([n,3]) vel = random.random([n,3]) cross(pos,vel) I compare the computation time needed with a C-api I wrote (de