Re: [Numpy-discussion] Numpy 1.2.2 ?

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 12:46 AM, Jarrod Millman <[EMAIL PROTECTED]>wrote: > On Sun, Nov 23, 2008 at 11:41 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > I'd like to do a 1.1.2 release for the Python 2.3 user(s) to get out some > > fixes for Python 2.3 that went in after the last release. I

Re: [Numpy-discussion] working on multiple matrices of the same shape

2008-11-24 Thread Stéfan van der Walt
2008/11/21 Sébastien Barthélemy <[EMAIL PROTECTED]>: > In this spirit, in numpy a set of rotation matrices could be built in > the following way: > > def rotx(theta): >""" >SE(3) matrices corresponding to a rotation around x-axis. Theta is > a 1-d array >""" >costheta = np.cos(theta

[Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Jarrod Millman
Now that scipy 0.7.0b1 has been tagged, I wanted to start planning for the NumPy 1.3.0: http://projects.scipy.org/scipy/numpy/milestone/1.3.0 The original plan was to release 1.3 at the end of November. At this point, we are going to have to push back the release date a bit. I would like to get

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread David Cournapeau
Jarrod Millman wrote: > Now that scipy 0.7.0b1 has been tagged, I wanted to start planning for > the NumPy 1.3.0: > http://projects.scipy.org/scipy/numpy/milestone/1.3.0 > > For completeness, we were wondering with Jarrod if the main focus of 1.3 could be python 2.6 compatibility (plus what is

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Francesc Alted
A Monday 24 November 2008, David Cournapeau escrigué: > Jarrod Millman wrote: > > Now that scipy 0.7.0b1 has been tagged, I wanted to start planning > > for the NumPy 1.3.0: > > http://projects.scipy.org/scipy/numpy/milestone/1.3.0 > > For completeness, we were wondering with Jarrod if the main fo

[Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution) was mentioned earlier at: * http://projects.scipy.org/pipermail/numpy-discussion/2006-December/024903.html There does not seem to be a formal

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Pierre GM
Well, talking about support to 2.6: When using explicit outputs for some functions (eg, ma.max, ma.min...), a value that should be masked is transformed into np.nan when the explicit output is not a ma.MaskedArray. That worked great in 2.5, with np.nan automatically transformed when the expl

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 4:34 AM, Jarrod Millman <[EMAIL PROTECTED]>wrote: > Now that scipy 0.7.0b1 has been tagged, I wanted to start planning for > the NumPy 1.3.0: > http://projects.scipy.org/scipy/numpy/milestone/1.3.0 > > The original plan was to release 1.3 at the end of November. At this >

[Numpy-discussion] Old-style classes in tests

2008-11-24 Thread Tom Wright
I am currently working on the Ironclad project porting numpy to Ironpython. It would be quite useful for me if HermitianTestCase in test_linalg.py was a new style-class instead of an old-style class - since Ironpython has a bug where dir operations do not work for classes inheriting from both o

Re: [Numpy-discussion] working on multiple matrices of the same shape

2008-11-24 Thread Sébastien Barthélemy
>> def rotx(theta): >>""" >>SE(3) matrices corresponding to a rotation around x-axis. Theta is >> a 1-d array >>""" >>costheta = np.cos(theta) >>sintheta = np.sin(theta) >>H = np.zeros((theta.size,4,4)) >>H[:,0,0] = 1 >>H[:,3,3] = 1 >>H[:,1,1] = costheta >>H[

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Travis E. Oliphant
Jim Vickroy wrote: > Hello, > > While using the PIL interface to numpy, I rediscovered a logic error > in the PIL.Image.fromarray() procedure. The problem (and a solution) > was mentioned earlier at: > > * > http://projects.scipy.org/pipermail/numpy-discussion/2006-December/024903.html > >

Re: [Numpy-discussion] Old-style classes in tests

2008-11-24 Thread Travis E. Oliphant
Tom Wright wrote: > I am currently working on the Ironclad project porting numpy to Ironpython. > > It would be quite useful for me if HermitianTestCase in test_linalg.py > was a new style-class instead of an old-style class - since Ironpython > has a bug where dir operations do not work for clas

[Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-24 Thread Charles سمير Doutriaux
Hello, Using numpy 1.2.1 on a mac os 10.5 I admit the user was sort of stretching the limits but (on his machine) import numpy a=numpy.ones((16800,60,96),'f') numpy.sort(a,axis=0) works import numpy.ma a=numpy.ma.sort((16800,60,96),'f') numpy.ma.sort(a,axis=0) failed with some malloc error:

Re: [Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-24 Thread Charles سمير Doutriaux
i mistyped the second line of the sample failing script it should obviously read: a=numpy.ma.ones((16800,60,96),'f') not numpy.ma.sort((16800,60,96),'f') C. On Nov 24, 2008, at 8:40 AM, Charles سمير Doutriaux wrote: > Hello, > > Using numpy 1.2.1 on a mac os 10.5 > > > I admit the user was sort

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Travis E. Oliphant wrote: Jim Vickroy wrote: Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution) was mentioned earlier at: * http://projects.scipy.org/pipermail/numpy-discussion/2006-Decemb

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Robert Kern
On Mon, Nov 24, 2008 at 11:26, Jim Vickroy <[EMAIL PROTECTED]> wrote: > Travis E. Oliphant wrote: > > Jim Vickroy wrote: > > > Hello, > > While using the PIL interface to numpy, I rediscovered a logic error > in the PIL.Image.fromarray() procedure. The problem (and a solution) > was mentioned earl

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Jim Vickroy
Robert Kern wrote: On Mon, Nov 24, 2008 at 11:26, Jim Vickroy <[EMAIL PROTECTED]> wrote: Travis E. Oliphant wrote: Jim Vickroy wrote: Hello, While using the PIL interface to numpy, I rediscovered a logic error in the PIL.Image.fromarray() procedure. The problem (and a solution) was menti

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Chris Barker
David Cournapeau wrote: > Windows 64 is a PITA, ... > I don:t see much hope to see more than a simple numpy built with > lapack-lite. This could be useful for people who use numpy for > matplotlib, for example; not sure if it worths the trouble. I think there is a great deal of use for it beyond s

Re: [Numpy-discussion] PIL.Image.fromarray bug in numpy interface

2008-11-24 Thread Chris Barker
Robert Kern wrote: >> Jim Vickroy wrote: >> While using the PIL interface to numpy, I rediscovered a logic error >> in the PIL.Image.fromarray() procedure. The problem (and a solution) >> was mentioned earlier at: > Tell them that we approve of the change. We don't have commit access > to PIL, so

Re: [Numpy-discussion] status of numpy 1.3.0

2008-11-24 Thread Francesc Alted
A Monday 24 November 2008, Jarrod Millman escrigué: > Now that scipy 0.7.0b1 has been tagged, I wanted to start planning > for the NumPy 1.3.0: > http://projects.scipy.org/scipy/numpy/milestone/1.3.0 > > The original plan was to release 1.3 at the end of November. At this > point, we are going to

[Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Francesc Alted
Hi, After dealing with another issue, I realized that the names of inverse trigonometrical/hyperbolic functions in NumPy don't follow the main standards in computer science. For example, where Python writes: asin, acos, atan, asinh, acosh, atanh NumPy choose: arcsin, arccos, arctan, arcsinh,

Re: [Numpy-discussion] Need some explanations on assigning/incrementing values in Numpy

2008-11-24 Thread Chris Barker
Robert Kern wrote: > matrix objects are a bit weird. Most operations on them always return > a 2D matrix, even if the same operation on a regular ndarray would > return a 1D array. Whatever happened to the proposals to improve this? I think there were some good ideas floated. -Chris -- Chris

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Eric Firing
Francesc Alted wrote: > Hi, > > After dealing with another issue, I realized that the names of inverse > trigonometrical/hyperbolic functions in NumPy don't follow the main > standards in computer science. For example, where Python writes: > > asin, acos, atan, asinh, acosh, atanh > > NumPy c

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Gabriel Gellner
On Mon, Nov 24, 2008 at 07:45:56PM +0100, Francesc Alted wrote: > Hi, > > After dealing with another issue, I realized that the names of inverse > trigonometrical/hyperbolic functions in NumPy don't follow the main > standards in computer science. For example, where Python writes: > > asin, ac

Re: [Numpy-discussion] numpy.ma.sort failing with bus error

2008-11-24 Thread Pierre GM
Charles, Confirmed on my machine... I gonna have to clean ma.sort, as there are indeed some temporaries that probably don't need to be created. I must warn you however that I won;t have a lot of time to spend on that in the next few days. In any case, of course, I'll keep you posted. Thx for

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Travis E. Oliphant
Francesc Alted wrote: > So, IMHO, I think it would be better to rename the inverse trigonometric > functions from ``arc*`` to ``a*`` prefix. Of course, in order to do > that correctly, one should add the new names and add a > ``DeprecationWarning`` informing that people should start to use the

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Jon Wright
Eric Firing wrote: > Francesc Alted wrote: > >> So, IMHO, I think it would be better to rename the inverse trigonometric >> functions from ``arc*`` to ``a*`` prefix. > > +1 > I have stumbled over this myself. If there is resistance to removing -1 There is resistance. Please don't remove the o

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Robert Kern
On Mon, Nov 24, 2008 at 14:00, Jon Wright <[EMAIL PROTECTED]> wrote: > I have the feeling the only times I ever write to this list is to say > "please don't change the API". So, here I am again, "please don't change > the API". This is a cosmetic change whose only effect seems to be to > have every

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Gabriel Gellner
> There is resistance. Please don't remove the old names. Also note that > your proposed change will alter people's code in subtle, but potentially > very "interesting" ways: > > >>> from math import * > >>> from numpy import * > >>> type(arcsin(1)) is type(asin(1)) > False > >>> from numpy impo

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Gael Varoquaux
On Mon, Nov 24, 2008 at 09:00:48PM +0100, Jon Wright wrote: > There is resistance. Please don't remove the old names. Also note that > your proposed change will alter people's code in subtle, but potentially > very "interesting" ways: > >>> from math import * > >>> from numpy import * > >>> type

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread David Warde-Farley
On 24-Nov-08, at 4:22 PM, Gabriel Gellner wrote: >> asin(1j) raises an exception, arcsin doesn't. They are *different* >> functions, hence the names. >> > Yet: > type(np.sin(1)) == type(math.sin(1)) > False In fact, this goes for every single function listed in the math module's docs, exc

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 3:00 PM, David Warde-Farley <[EMAIL PROTECTED]>wrote: > > On 24-Nov-08, at 4:22 PM, Gabriel Gellner wrote: > > >> asin(1j) raises an exception, arcsin doesn't. They are *different* > >> functions, hence the names. > >> > > Yet: > > > type(np.sin(1)) == type(math.sin(1)

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Jarrod Millman
On Mon, Nov 24, 2008 at 10:45 AM, Francesc Alted <[EMAIL PROTECTED]> wrote: > So, IMHO, I think it would be better to rename the inverse trigonometric > functions from ``arc*`` to ``a*`` prefix. Of course, in order to do > that correctly, one should add the new names and add a > ``DeprecationWarni

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 3:55 PM, Jarrod Millman <[EMAIL PROTECTED]>wrote: > On Mon, Nov 24, 2008 at 10:45 AM, Francesc Alted <[EMAIL PROTECTED]> > wrote: > > So, IMHO, I think it would be better to rename the inverse trigonometric > > functions from ``arc*`` to ``a*`` prefix. Of course, in order

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Joshua Lippai
I agree with Jon here. I can see plenty of motivation for adding the names asin, etc., but there really isn't a need to remove the current versions, and it will just introduce compatibility issues when someone tries to run code written with NumPy 1.x using a NumPy 2.x installation for even the simp

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 4:09 PM, Charles R Harris <[EMAIL PROTECTED] > wrote: > > > On Mon, Nov 24, 2008 at 3:55 PM, Jarrod Millman <[EMAIL PROTECTED]>wrote: > >> On Mon, Nov 24, 2008 at 10:45 AM, Francesc Alted <[EMAIL PROTECTED]> >> wrote: >> > So, IMHO, I think it would be better to rename the

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Matthew Brett
Hi, I think this change could be confusing. numpy.asum numpy.arange numpy.amax etc all have the intended meaning of 'a-for-array-version-of-function'. This obviously isn't the case for 'acos'. Explaining the difference could be painful. Best, Matthew _

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Robert Kern
On Mon, Nov 24, 2008 at 17:13, Charles R Harris <[EMAIL PROTECTED]> wrote: > Maybe we could push all the changes off to a Numpy release compatible with > Python 3.0. Folks will expect a certain amount of hassle when making that > switch. Guido, et al., have specifically asked that projects not do

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Chris Barker
Matthew Brett wrote: > numpy.asum numpy.arange numpy.amax etc all have the intended meaning > of 'a-for-array-version-of-function'. This obviously isn't the case > for 'acos'. actually, it is, isn't it? a version of math.cos that works for arrays? But anyway, if we had it to do all over again,

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Robert Kern
On Mon, Nov 24, 2008 at 18:40, Chris Barker <[EMAIL PROTECTED]> wrote: > Matthew Brett wrote: >> numpy.asum numpy.arange numpy.amax etc all have the intended meaning >> of 'a-for-array-version-of-function'. This obviously isn't the case >> for 'acos'. > > actually, it is, isn't it? a version of m

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Christopher Barker
Robert Kern wrote: > On Mon, Nov 24, 2008 at 18:40, Chris Barker <[EMAIL PROTECTED]> wrote: >> actually, it is, isn't it? a version of math.cos that works for arrays? > > No. Not at all. acos() and arccos() are the inverse functions of cos(). argg!! total brain freeze there. Can I pretend I never

Re: [Numpy-discussion] Proposal for changing the names of inverse trigonometrical/hyperbolic functions

2008-11-24 Thread Robert Kern
On Mon, Nov 24, 2008 at 19:29, Christopher Barker <[EMAIL PROTECTED]> wrote: > Robert Kern wrote: >> On Mon, Nov 24, 2008 at 18:40, Chris Barker <[EMAIL PROTECTED]> wrote: >>> actually, it is, isn't it? a version of math.cos that works for arrays? >> >> No. Not at all. acos() and arccos() are the i

[Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread David Cournapeau
Hi, Following the discussion on python 2.6 support for numpy, I tried last svn on mac os X, and I get a number of failures which I don't understand, which seem to be linked to dtype code, more exactly to endianness: == FAIL: tes

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 8:18 PM, David Cournapeau <[EMAIL PROTECTED]>wrote: > Hi, > > Following the discussion on python 2.6 support for numpy, I tried last > svn on mac os X, and I get a number of failures which I don't > understand, which seem to be linked to dtype code, more exactly to > endian

[Numpy-discussion] CorePy 1.0 Release (x86, Cell BE, BSD!)

2008-11-24 Thread Chris Mueller
Announcing CorePy 1.0 - http://www.corepy.org We are pleased to announce the latest release of CorePy. CorePy is a complete system for developing machine-level programs in Python. CorePy lets developers build and execute assembly-level programs interactively from the Python command prompt, embed

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread David Cournapeau
On Tue, Nov 25, 2008 at 12:41 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > > 1) This problem is specific to 2.6 and 2.5 works. Yes > 2) It's on Intel hardware? Yes. Here is a minimal test which shows the problem: import numpy as np assert np.dtype('http://projects.scipy.org/mailman/listi

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 9:02 PM, David Cournapeau <[EMAIL PROTECTED]>wrote: > On Tue, Nov 25, 2008 at 12:41 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > > > > 1) This problem is specific to 2.6 and 2.5 works. > > Yes > > > 2) It's on Intel hardware? > > Yes. > > Here is a minimal test whi

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 9:38 PM, Charles R Harris <[EMAIL PROTECTED] > wrote: > > > On Mon, Nov 24, 2008 at 9:02 PM, David Cournapeau <[EMAIL PROTECTED]>wrote: > >> On Tue, Nov 25, 2008 at 12:41 PM, Charles R Harris >> <[EMAIL PROTECTED]> wrote: >> > >> >> > 1) This problem is specific to 2.6 and

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread Charles R Harris
On Mon, Nov 24, 2008 at 9:58 PM, Charles R Harris <[EMAIL PROTECTED] > wrote: > > > On Mon, Nov 24, 2008 at 9:38 PM, Charles R Harris < > [EMAIL PROTECTED]> wrote: > >> >> >> On Mon, Nov 24, 2008 at 9:02 PM, David Cournapeau <[EMAIL PROTECTED]>wrote: >> >>> On Tue, Nov 25, 2008 at 12:41 PM, Charle

Re: [Numpy-discussion] CorePy 1.0 Release (x86, Cell BE, BSD!)

2008-11-24 Thread Brian Granger
Chris, Wow, this is fantastic...both the BSD license and the x86 support. I look forward to playing with this! Cheers, Brian On Mon, Nov 24, 2008 at 7:49 PM, Chris Mueller <[EMAIL PROTECTED]> wrote: > Announcing CorePy 1.0 - http://www.corepy.org > > We are pleased to announce the latest relea

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread David Cournapeau
On Mon, 2008-11-24 at 21:38 -0700, Charles R Harris wrote: > > > On Mon, Nov 24, 2008 at 9:02 PM, David Cournapeau <[EMAIL PROTECTED]> > wrote: > On Tue, Nov 25, 2008 at 12:41 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > > > > 1) This problem is s

Re: [Numpy-discussion] Numpy on Mac OS X python 2.6

2008-11-24 Thread David Cournapeau
On Mon, 2008-11-24 at 22:06 -0700, Charles R Harris wrote: > > > Well, it may not be that easy to figure. The (generated) > pyconfig-32.h has > > /* Define to 1 if your processor stores words with the most > significant byte > first (like Motorola and SPARC, unlike Intel and VAX).