[Numpy-discussion] Boolean output for Object arrays with M

2008-04-21 Thread Travis E. Oliphant
Hi Chuck, O.K. I've finally caught up with you, I think (at least as far as the umath generators go). All TD(M,.) lines should *not* have out='?' The reasoning is that this specifies a ufunc type with object inputs and boolean array outputs where the function is a method of the object

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Charles R Harris
On Mon, Apr 21, 2008 at 9:09 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > > > > > On Mon, Apr 21, 2008 at 8:53 PM, Charles R Harris > > <[EMAIL PROTECTED] > wrote: > > > > > > > > On Mon, Apr 21, 2008 at 8:28 PM, Travis E. Oliphant >

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Charles R Harris
On Mon, Apr 21, 2008 at 9:09 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > > > > > On Mon, Apr 21, 2008 at 8:53 PM, Charles R Harris > > <[EMAIL PROTECTED] > wrote: > > > > > > > > On Mon, Apr 21, 2008 at 8:28 PM, Travis E. Oliphant >

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Travis E. Oliphant
Charles R Harris wrote: > > > On Mon, Apr 21, 2008 at 8:53 PM, Charles R Harris > <[EMAIL PROTECTED] > wrote: > > > > On Mon, Apr 21, 2008 at 8:28 PM, Travis E. Oliphant > <[EMAIL PROTECTED] > wrote: > > Charles R Harris wrote: >

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Charles R Harris
On Mon, Apr 21, 2008 at 8:53 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > On Mon, Apr 21, 2008 at 8:28 PM, Travis E. Oliphant < > [EMAIL PROTECTED]> wrote: > > > Charles R Harris wrote: > > > I've gotten my own python class with a logical_not method to work > > > correctly if I goto numpy

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Charles R Harris
On Mon, Apr 21, 2008 at 8:28 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > I've gotten my own python class with a logical_not method to work > > correctly if I goto numpy/core/code_generators/generate_umath.py and > > change > I need more context for this. Why d

Re: [Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Travis E. Oliphant
Charles R Harris wrote: > I've gotten my own python class with a logical_not method to work > correctly if I goto numpy/core/code_generators/generate_umath.py and > change I need more context for this. Why does the umath generator matter for your python class? > > 'logical_not' : > Ufunc(1

[Numpy-discussion] Code generator bug and fix?

2008-04-21 Thread Charles R Harris
I've gotten my own python class with a logical_not method to work correctly if I goto numpy/core/code_generators/generate_umath.py and change 'logical_not' : Ufunc(1, 1, None, 'returns not x elementwise.', TD(noobj, out='?'), TD(M, f='logical_not', out='?'),

[Numpy-discussion] ANN: EPD - Enthought Python Distribution released

2008-04-21 Thread Travis Vaught
Greetings, Enthought is pleased to announce the release of the Enthought Python Distribution (EPD) version 2.5.2001. http://www.enthought.com/epd This release makes available both the RedHat 3.x (amd64) and Windows XP (x86) installers. OS X, Ubuntu and more (modern) RHEL versions are comi

Re: [Numpy-discussion] powerpc yellow dog linux port of numpy

2008-04-21 Thread Vincent Broman
I succeeded in working around the other Yellow Dog Linux porting problem connected with the floating point exception calls. It turns out that a problematic #include was protected by a "#ifdef __OPTIMIZE__" so my preprocessing with "gcc -E" never saw its effect. So, by avoiding optimization of u

[Numpy-discussion] Summing indices of heterogeneous shapes

2008-04-21 Thread Michael Hoffman
In the following example I can sum up lists of column indices: >>> x = numpy.arange(30) >>> x.shape = (6, 5) >>> x array([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19], [20, 21, 22, 23, 24], [25, 26, 27, 28, 29]])

Re: [Numpy-discussion] API scan

2008-04-21 Thread Charles R Harris
On Sun, Apr 20, 2008 at 11:51 PM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > Hi Charles > > On 21/04/2008, Charles R Harris <[EMAIL PROTECTED]> wrote: > > I would like to scan generated files for API functions, but it seems > that > > the API scan runs on files in the numpy/core/src director

Re: [Numpy-discussion] Speed of matrix multiplication

2008-04-21 Thread Travis E. Oliphant
Keith Goodman wrote: > Why is a.T*b slower than M.dot(a.T, b)? Does it take longer to parse > or something? > The issue I think is that a is a Python class and so takes a bit longer to do all the things being done which includes: 1) running the Python __mul__ function 2) creating a new array (

Re: [Numpy-discussion] OSX installer: please test

2008-04-21 Thread Tony Theodore
Christopher Burns berkeley.edu> writes: > > I've built a Universal Mac binary for numpy 1.1.0.  Installed correctly on OSX 10.5.2, Intel Core 2 Duo and all tests passed. Thanks, Tony ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] [numscons] 0.6.1 release: it build scipy, and on windows !

2008-04-21 Thread David Cournapeau
Pearu Peterson wrote: > David Cournapeau wrote: > > >> - f2py has been almost entirely rewritten: it can now scan the >> > > >> module name automatically, and should be much more reliable. >> > > What do you mean by ^^^? ;) >

Re: [Numpy-discussion] [numscons] 0.6.1 release: it build scipy, and on windows !

2008-04-21 Thread Pearu Peterson
David Cournapeau wrote: > - f2py has been almost entirely rewritten: it can now scan the > module name automatically, and should be much more reliable. What do you mean by ^^^? ;) Pearu ___ Numpy-

Re: [Numpy-discussion] f2py on windows cant find gfortran because split_quoted() removed from ccompiler.py

2008-04-21 Thread Pearu Peterson
Jarrod Millman wrote: > Our version of split_quoted() was added several years ago and should > I think be submitted for inclusion upstream. I know that distutils > isn't exactly being maintained, but--Pearu--is it possible that we > could get this upstream? I looked into the distutils code aga

Re: [Numpy-discussion] [numscons] 0.6.1 release: it build scipy, and on windows !

2008-04-21 Thread Matthieu Brucher
Congratulations for this :) Matthieu 2008/4/21, David Cournapeau <[EMAIL PROTECTED]>: > > Hi, > > I am pleased to announce the 0.6.1 release of numscons. You can get > tarballs, eggs for python 2.4/2.5 and windows installers on launchpad: > > https://launchpad.net/numpy.scons.support/0.6/0.6.

[Numpy-discussion] [numscons] 0.6.1 release: it build scipy, and on windows !

2008-04-21 Thread David Cournapeau
Hi, I am pleased to announce the 0.6.1 release of numscons. You can get tarballs, eggs for python 2.4/2.5 and windows installers on launchpad: https://launchpad.net/numpy.scons.support/0.6/0.6.1 I did not announce any release of numscons for some time, but this one is a significant milesto