[Numpy-discussion] EuroScipy abstract submission deadline extended

2010-05-16 Thread Gael Varoquaux
Given that we have been able to turn on registration only very late, the EuroScipy conference committee is extending the deadline for abstract submission for the 2010 EuroScipy conference. On Thursday May 20th, at midnight Samoa time, we will turn off the abstract submission on the conference site

[Numpy-discussion] EuroScipy is finally open for registration

2010-05-16 Thread Gaël Varoquaux
The registration for EuroScipyis finally open. To register, go to the website, create an account, and you will see a *‘register to the conference’* button on the left. Follow it to a page which

Re: [Numpy-discussion] faster code

2010-05-16 Thread Keith Goodman
On Sun, May 16, 2010 at 1:18 PM, Eric Firing wrote: > On 05/16/2010 09:24 AM, Keith Goodman wrote: >> On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna >>  wrote: >>> Hi all, >>> What is the fastest and lowest memory consumption way to compute this? >>> y = np.arange(2**24) >>> bases = y[1:] + y[:

Re: [Numpy-discussion] newbie: convert recarray to floating-point ndarray with mixed types

2010-05-16 Thread Erik Tollerud
If you want to do it in just one line (the third line below), this seems to work - unless you have zillions of types in the structured array it should be plenty fast, too: >>> import numpy as np >>> A = np.array([(1.0, 2), (3.0, 4)], dtype=[('x', float), ('y', int)]) >>> array([A[n] for n in A.dty

Re: [Numpy-discussion] faster code

2010-05-16 Thread Davide Lasagna
Well, actually np.arange(2**24) was just to test the following line ;). I'm particularly concerned about memory consumption rather than speed. On 16 May 2010 22:53, Brent Pedersen wrote: > On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna > wrote: > > Hi all, > > What is the fastest and lowest m

Re: [Numpy-discussion] faster code

2010-05-16 Thread Brent Pedersen
On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna wrote: > Hi all, > What is the fastest and lowest memory consumption way to compute this? > y = np.arange(2**24) > bases = y[1:] + y[:-1] > Actually it is already quite fast, but i'm not sure whether it is occupying > some temporary memory > is the

[Numpy-discussion] [sympy] EuroScipy abstract submission deadline extended

2010-05-16 Thread Gael Varoquaux
Given that we have been able to turn on registration only very late, the EuroScipy conference committee is extending the deadline for abstract submission for the 2010 EuroScipy conference. On Thursday May 20th, at midnight Samoa time, we will turn off the abstract submission on the conference site

Re: [Numpy-discussion] faster code

2010-05-16 Thread Eric Firing
On 05/16/2010 09:24 AM, Keith Goodman wrote: > On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna > wrote: >> Hi all, >> What is the fastest and lowest memory consumption way to compute this? >> y = np.arange(2**24) >> bases = y[1:] + y[:-1] >> Actually it is already quite fast, but i'm not sure wh

Re: [Numpy-discussion] faster code

2010-05-16 Thread Keith Goodman
On Sun, May 16, 2010 at 12:14 PM, Davide Lasagna wrote: > Hi all, > What is the fastest and lowest memory consumption way to compute this? > y = np.arange(2**24) > bases = y[1:] + y[:-1] > Actually it is already quite fast, but i'm not sure whether it is occupying > some temporary memory > is the

[Numpy-discussion] faster code

2010-05-16 Thread Davide Lasagna
Hi all, What is the fastest and lowest memory consumption way to compute this? y = np.arange(2**24) bases = y[1:] + y[:-1] Actually it is already quite fast, but i'm not sure whether it is occupying some temporary memory is the summation. Any help is appreciated. Cheers Davide

Re: [Numpy-discussion] Wrong Eigenvalue (Approximation?)

2010-05-16 Thread Gökhan Sever
Floating point numbers; one of my recent favorite subjects... See this hot Slashdot discussion subject: what every programmer should know about floating-point arithmetic On 5/16/10, Alan G Isaac wrote: > On 5/16/2010 12:03 AM, Gabriel Mihalache wrote: >> The eigenvalue should be 1 exactly. > > ht

Re: [Numpy-discussion] Wrong Eigenvalue (Approximation?)

2010-05-16 Thread Alan G Isaac
On 5/16/2010 12:03 AM, Gabriel Mihalache wrote: > The eigenvalue should be 1 exactly. http://floating-point-gui.de/ hth, Alan Isaac ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Array input

2010-05-16 Thread David Verelst
Hi Allen, If you google on "python user input" you already have your answer... for instance: http://en.wikibooks.org/wiki/Python_Programming/Input_and_output Hope this helps, David > Hi all, > Am creating a script to do least square adjustment of levelling data. How do > I get user input into

[Numpy-discussion] Array input

2010-05-16 Thread lumtegis
Hi all, Am creating a script to do least square adjustment of levelling data. How do I get user input into a 1D array of intergers. Thanks in advance. Allan maungu.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailma