Re: [Numpy-discussion] users point of view and ufuncs

2006-08-23 Thread Bill Baxter
On 8/24/06, Sebastian Haase <[EMAIL PROTECTED]> wrote: > I'm not sure what this question is asking, so I'll answer what I think> it is asking.>> The mean, min, max, and average functions are *not* ufuncs.   They are> methods of particular ufuncs. >Yes - that's what  wanted to hear !  I'm just tryin

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Sebastian Haase
Travis Oliphant wrote: > Sebastian Haase wrote: >> On Wednesday 23 August 2006 18:37, Travis Oliphant wrote: >> >>> David M. Cooke wrote: >>> On Wed, 23 Aug 2006 16:22:52 -0700 Sebastian Haase <[EMAIL PROTECTED]> wrote: > On Wednesday 23 August 2006 16:12, Bil

Re: [Numpy-discussion] Handling interrupts in NumPy extensions

2006-08-23 Thread David Cournapeau
David M. Cooke wrote: > On Wed, 23 Aug 2006 11:45:29 -0700 > Travis Oliphant <[EMAIL PROTECTED]> wrote: > >> I'm working on some macros that will allow extensions to be >> "interruptable" (i.e. with Ctrl-C). The idea came from SAGE but the >> implementation is complicated by the possibility of t

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Travis Oliphant
Sebastian Haase wrote: > On Wednesday 23 August 2006 18:37, Travis Oliphant wrote: > >> David M. Cooke wrote: >> >>> On Wed, 23 Aug 2006 16:22:52 -0700 >>> >>> Sebastian Haase <[EMAIL PROTECTED]> wrote: >>> On Wednesday 23 August 2006 16:12, Bill Baxter wrote:

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Sebastian Haase
On Wednesday 23 August 2006 18:37, Travis Oliphant wrote: > David M. Cooke wrote: > > On Wed, 23 Aug 2006 16:22:52 -0700 > > > > Sebastian Haase <[EMAIL PROTECTED]> wrote: > >> On Wednesday 23 August 2006 16:12, Bill Baxter wrote: > >>> The thing that I find I keep forgetting is that abs() is a bui

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Travis Oliphant
David M. Cooke wrote: > On Wed, 23 Aug 2006 16:22:52 -0700 > Sebastian Haase <[EMAIL PROTECTED]> wrote: > > >> On Wednesday 23 August 2006 16:12, Bill Baxter wrote: >> >>> The thing that I find I keep forgetting is that abs() is a built-in, but >>> other simple functions are not. So it's a

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Fernando Perez
On 8/23/06, Bill Baxter <[EMAIL PROTECTED]> wrote: > The thing that I find I keep forgetting is that abs() is a built-in, but > other simple functions are not. So it's abs(foo), but numpy.floor(foo) and > numpy.ceil(foo). And then there's round() which is a built-in but can't be > used with array

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread David M. Cooke
On Wed, 23 Aug 2006 16:22:52 -0700 Sebastian Haase <[EMAIL PROTECTED]> wrote: > On Wednesday 23 August 2006 16:12, Bill Baxter wrote: > > The thing that I find I keep forgetting is that abs() is a built-in, but > > other simple functions are not. So it's abs(foo), but numpy.floor(foo) > > and num

Re: [Numpy-discussion] Handling interrupts in NumPy extensions

2006-08-23 Thread David M. Cooke
On Wed, 23 Aug 2006 11:45:29 -0700 Travis Oliphant <[EMAIL PROTECTED]> wrote: > > I'm working on some macros that will allow extensions to be > "interruptable" (i.e. with Ctrl-C). The idea came from SAGE but the > implementation is complicated by the possibility of threads and making > sure t

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Sebastian Haase
On Wednesday 23 August 2006 16:12, Bill Baxter wrote: > The thing that I find I keep forgetting is that abs() is a built-in, but > other simple functions are not. So it's abs(foo), but numpy.floor(foo) and > numpy.ceil(foo). And then there's round() which is a built-in but can't be > used with ar

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Bill Baxter
The thing that I find I keep forgetting is that abs() is a built-in, but other simple functions are not.  So it's abs(foo), but numpy.floor(foo) and numpy.ceil(foo).  And then there's round() which is a built-in but can't be used with arrays, so numpy.round_(foo).    Seems like it would be more co

Re: [Numpy-discussion] numpy-1.0b3 under windows

2006-08-23 Thread Travis Oliphant
Travis Oliphant wrote: > Frank Conradie wrote: > >> Hi Sven and Jordan >> >> I wish to add my name to this list ;-) I just got the same error >> trying to compile for Python 2.3 with latest candidate mingw32, >> following the instructions at >> http://www.scipy.org/Installing_SciPy/Windows .

Re: [Numpy-discussion] numpy-1.0b3 under windows

2006-08-23 Thread Travis Oliphant
Frank Conradie wrote: > Hi Sven and Jordan > > I wish to add my name to this list ;-) I just got the same error > trying to compile for Python 2.3 with latest candidate mingw32, > following the instructions at > http://www.scipy.org/Installing_SciPy/Windows . > > Hopefully someone can shed some

Re: [Numpy-discussion] numpy-1.0b3 under windows

2006-08-23 Thread Frank Conradie
Hi Sven and Jordan I wish to add my name to this list ;-) I just got the same error trying to compile for Python 2.3 with latest candidate mingw32, following the instructions at http://www.scipy.org/Installing_SciPy/Windows . Hopefully someone can shed some light on this error - what I've bee

Re: [Numpy-discussion] Handling interrupts in NumPy extensions

2006-08-23 Thread Perry Greenfield
I thought it might be useful to give a little more context on the problems involved in handling such interruptions. Basically, one doesn't want to exit out of places where data structures are incompletely set up, or memory isn't properly handled so that later references to these don't cause

Re: [Numpy-discussion] numpy-1.0b3 under windows

2006-08-23 Thread Sven Schreiber
Jordan Dawe schrieb: > I just tried to compile numpy-1.0b3 under windows using mingw. I got > this error: ... > > Any ideas? > No, except that I ran into the same problem... Hooray, I'm not alone ;-) -sven - Using Tomcat

[Numpy-discussion] numpy-1.0b3 under windows

2006-08-23 Thread Jordan Dawe
I just tried to compile numpy-1.0b3 under windows using mingw. I got this error: compile options: '-Ibuild\src.win32-2.4\numpy\core\src -Inumpy\core\include -Ibuild\src.win32-2.4\numpy\core -Inumpy\core\src -Inumpy\core\include -Ic:\Python24\include -Ic:\Python24\PC -c' gcc -mno-cygwin -O2 -Wa

Re: [Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread David M. Cooke
On Wed, 23 Aug 2006 13:51:02 -0700 Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi! > numpy renamed the *function* abs to absolute. > Most functions like mean, min, max, average, ... > have an equivalent array *method*. > > Why is absolute left out ? > I think it should be added . We've got __ab

[Numpy-discussion] request for new array method: arr.abs()

2006-08-23 Thread Sebastian Haase
Hi! numpy renamed the *function* abs to absolute. Most functions like mean, min, max, average, ... have an equivalent array *method*. Why is absolute left out ? I think it should be added . Furthermore, looking at some line of code that have multiple calls to absolute [ like f(absolute(a), abso

Re: [Numpy-discussion] speed degression

2006-08-23 Thread Travis Oliphant
Charles R Harris wrote: > Yes, > > On 8/19/06, Joris De Ridder <[EMAIL PROTECTED] > > wrote: > > Hi, > > > > Some of my code is heavily using large complex arrays, and I noticed > a speed > > degression in NumPy 1.0b2 with respect to Numarray. The following > code snipp

Re: [Numpy-discussion] Newbie question

2006-08-23 Thread Alan G Isaac
On Wed, 23 Aug 2006, (GMT) Paul Midgley apparently wrote: > I have been interested in using python for some time for > carrying out calculations, but I have not been able to > determine if it is possible to use it to print out > a report at the end. http://gael-varoquaux.info/computers/pyrepo

Re: [Numpy-discussion] Newbie question

2006-08-23 Thread John Byrnes
On Wednesday 23 August 2006 19:12, Paul Midgley wrote: > Hello > > I have been interested in using python for some time for carrying out > calculations, but I have not been able to determine if it is possible to > use it to print out a report at the end. What I want is to use it similar > to Mathca

[Numpy-discussion] Newbie question

2006-08-23 Thread Paul Midgley
HelloI have been interested in using python for some time for carrying out calculations, but I have not been able to determine if it is possible to use it to print out a report at the end. What I want is to use it similar to Mathcad producing structured equations in line with the text, graphs etc.I

[Numpy-discussion] Handling interrupts in NumPy extensions

2006-08-23 Thread Travis Oliphant
I'm working on some macros that will allow extensions to be "interruptable" (i.e. with Ctrl-C). The idea came from SAGE but the implementation is complicated by the possibility of threads and making sure to handle clean-up code correctly when the interrupt returns. I'd like to get this in to

Re: [Numpy-discussion] Array pooling

2006-08-23 Thread Charles R Harris
Hi Carlos,On 8/22/06, Carlos Pita <[EMAIL PROTECTED]> wrote: One reason is to use operator syntax: buf1 = buf2 +  buf3, instead of add(buf2,buf3, buf1). The other is to spare the final user (synth programmer) any buffer bookkeeping. I see. My idea was to keep track of pooled buffers' reference cou