Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-13 Thread Sebastian Haase
+1 On Sun, May 13, 2012 at 4:28 AM, Travis Oliphant tra...@continuum.io wrote: Another approach would be to introduce a method: a.diag(copy=False) and leave a.diagonal() alone.  Then, a.diagonal() could be deprecated over 2-3 releases. -Travis On May 12, 2012, at 8:31 AM, Ralf Gommers

Re: [Numpy-discussion] Should arr.diagonal() return a copy or a view? (1.7 compatibility issue)

2012-05-13 Thread Nathaniel Smith
On Sun, May 13, 2012 at 3:28 AM, Travis Oliphant tra...@continuum.io wrote: Another approach would be to introduce a method: a.diag(copy=False) and leave a.diagonal() alone.  Then, a.diagonal() could be deprecated over 2-3 releases. This would be a good idea if we didn't already have both

Re: [Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

2012-05-13 Thread Paul Anton Letnes
On Sat, May 12, 2012 at 9:50 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Sun, May 6, 2012 at 12:12 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sat, May 5, 2012 at 2:56 PM, Paul Anton Letnes paul.anton.let...@gmail.com wrote: Hi, I'm getting a couple of errors

[Numpy-discussion] Correlation code from NumPy 1.5 Beginner's Guide

2012-05-13 Thread Dinesh Prasad
Hello. I am new to the list thanks for accepting my question.   I am trying to run the attached code, directly from the book in the title.   It simply calculates correlation of returns of the stock listed in the spreadsheets. could it be that the numPY library is not being recognized on my

[Numpy-discussion] fromstring() is slow, no really!

2012-05-13 Thread Anthony Scopatz
Hello All, This week, while doing some optimization, I found that np.fromstring() is significantly slower than many alternatives out there. This function basically does two things: (1) it splits the string and (2) it converts the data to the desired type. There isn't much we can do about the

Re: [Numpy-discussion] fromstring() is slow, no really!

2012-05-13 Thread Anthony Scopatz
And I forgot to attach the relevant code (though it is also in my fork)... On Sun, May 13, 2012 at 6:28 PM, Anthony Scopatz scop...@gmail.com wrote: Hello All, This week, while doing some optimization, I found that np.fromstring() is significantly slower than many alternatives out there.