[Numpy-discussion] Functions vs Methods

2011-12-27 Thread Jaidev Deshpande
Hi It is said that function calls are expensive. Does that mean one must use available methods instead? Eg. x is a NumPy array, and I need its transpose Should I use >>> x.T or >>> numpy.transpose(T) ? Does it matter which one I'm using ? If not, under what conditions does it become import

Re: [Numpy-discussion] GSOC

2011-12-29 Thread Jaidev Deshpande
Hi! > Along with test coverage, have any of you considered any systematic > monitoring of NumPy performance? I'm mildly obsessed with performance and benchmarking of NumPy. I used to use a lot of MATLAB until a year back and I tend to compare Python performance with it all the time. I generally d

Re: [Numpy-discussion] GSOC

2011-12-30 Thread Jaidev Deshpande
Hi Chris > Documentation is specificsly excluded from GSoC (at least it was a > couple years ago when I last was involved) Documentation wasn't excluded last year from GSoC, there were quite a few projects that required a lot of documentation. But yes, there was no "documentation only" project.

[Numpy-discussion] Working with MATLAB

2012-01-23 Thread Jaidev Deshpande
Dear List, I frequently work with MATLAB and it is necessary for me many a times to adapt MATLAB codes for NumPy arrays. While for most practical purposes it works fine, I think there might be a lot of 'under the hood' things that I might be missing when I make the translations from MATLAB to Pyt

Re: [Numpy-discussion] Working with MATLAB

2012-01-23 Thread Jaidev Deshpande
Please ignore my question. I found what I needed on the scipy website. I asked the question in haste. I'm sorry. Thanks ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Is there a pure numpy recipe for this?

2014-03-26 Thread Jaidev Deshpande
On Thu, Mar 27, 2014 at 1:18 AM, Slaunger wrote: > I am working on solving a recent recreational mathematical problem on > Project Euler . I have a solution, which works > fine for small N up to 10^5 but it takes too long to compute for the actual > problem, where N is

Re: [Numpy-discussion] What does -0.0 means?

2016-01-20 Thread Jaidev Deshpande
Hi Arnaldo, On 20 Jan 2016 21:56, "Arnaldo Russo" wrote: > > Hi all, > > After fitting a curve, the output returns the initial value as -0.0. Why not a simple 0.0? > What is this difference? > Sorry for the stupid question, but why exist a negative zero? Haha, that used to stump me too, before I

[Numpy-discussion] Memory error with numpy.loadtxt()

2011-02-25 Thread Jaidev Deshpande
Hi Is it possible to load a text file 664 MB large with integer values and about 98% sparse? numpy.loadtxt() shows a memory error. If it's not possible, what alternatives could I have? The usable RAM on my machine running Windows 7 is 3.24 GB. Thanks. ___

[Numpy-discussion] Largest possible numpy array

2011-02-26 Thread Jaidev Deshpande
Hi How can I know the size of the largest possible 2-D array in numpy, given a specific 'dtype' and my system memory? How can one play around with this? Would it help to note that the array might be say *m* megabytes on disk, say, *n* % sparse? Also, is there some good literature about the large