Re: [Numpy-discussion] Examples of basic C API usage?

2006-08-09 Thread Benjamin Thyreau
Le Mardi 8 Août 2006 05:18, Bill Baxter a écrit : > I see Pyrex and SWIG examples in numpy/doc but there doesn't seem to be an > example of just a simple straightforward usage of the C-API. > For instance make a few arrays by hand in C and then call numpy.multiply() > on them. So far my attempts t

Re: [Numpy-discussion] Moving docstrings from C to Python

2006-08-09 Thread David Huard
I started to do the same with array methods, but before I spend too much time on it, I'd like to be sure I'm doing the right thing.1. In add_newdocs.py, add from numpy.core import ndarray2. then add an entry for each method, eg add_docstring(ndarray.var,     """a.var(axis=None, dtype=None)    Retur

[Numpy-discussion] how to reference Numerical Python in a scientific publication

2006-08-09 Thread Sebastian Haase
Hi, we are using numerical python as an integral part of a microscope development project over last few years. So far we have been using exclusively numarray but now I decided it's time to slowly but sure migrate to numpy. What is the proper way to reference these packages ? Thanks to everyone

[Numpy-discussion] bug !? dtype type_descriptor does not accept zero length tuple

2006-08-09 Thread Sebastian Haase
Hi! I have a problem with record array type descriptor. With numarray this used to work. My records made of n integers and m floats. So I used to be able specify formats="%di4,%df4"%(self.numInts,self.numFloats) in numarray which would translate to byteorder = self.isByteSwapped and '>' or '<'

Re: [Numpy-discussion] astype char conversion

2006-08-09 Thread Travis Oliphant
Matthew Brett wrote: > Hi, > > Sorry if this is silly question, but should this work to convert from > int8 to character type? > > a = array([104, 105], dtype=N.int8) > a.astype('|S1') > I'm not sure what you are trying to do here, but the standard coercion to strings will generate ['104', '105

Re: [Numpy-discussion] bug !? dtype type_descriptor does not accept zero length tuple

2006-08-09 Thread Travis Oliphant
Sebastian Haase wrote: > Hi! > I have a problem with record array type descriptor. > With numarray this used to work. > My records made of n integers and m floats. So I used to be able specify > formats="%di4,%df4"%(self.numInts,self.numFloats) in numarray which would > translate to > byteorder

Re: [Numpy-discussion] bug !? dtype type_descriptor does not accept zero length tuple

2006-08-09 Thread Sebastian Haase
On Wednesday 09 August 2006 15:18, Travis Oliphant wrote: > Sebastian Haase wrote: > > Hi! > > I have a problem with record array type descriptor. > > With numarray this used to work. > > My records made of n integers and m floats. So I used to be able > > specify formats="%di4,%df4"%(self.numInt

[Numpy-discussion] Infinite loop in Numeric-24.2 for eigenvalues

2006-08-09 Thread Jim Kleckner
It seems that this old problem of compiling Numeric is a problem again (even on my Linux box, not just cygwin): http://sourceforge.net/tracker/index.php?func=detail&aid=732520&group_id=1369&atid=301369 (The issue was the dlamch.f code) The patch recommended to run: python setup.py config i

Re: [Numpy-discussion] Infinite loop in Numeric-24.2 for eigenvalues

2006-08-09 Thread Jim Kleckner
Jim Kleckner wrote: > It seems that this old problem of compiling Numeric is a problem again > (even on my Linux box, not just cygwin): > > http://sourceforge.net/tracker/index.php?func=detail&aid=732520&group_id=1369&atid=301369 > > > > (The issue was the dlamch.f code) > > The patch recommen

Re: [Numpy-discussion] bug !? dtype type_descriptor does not accept zero length tuple

2006-08-09 Thread Sebastian Haase
Travis Oliphant wrote: > Sebastian Haase wrote: >> On Wednesday 09 August 2006 15:45, you wrote: >> >>> Sebastian Haase wrote: >>> On Wednesday 09 August 2006 15:18, Travis Oliphant wrote: > If numarray supported it, then we should get NumPy to support it as > well >>

[Numpy-discussion] how to reference Numerical Python in a scientific publication

2006-08-09 Thread Sebastian Haase
Hi, we are using numerical python as an integral part of a microscope development project over last few years. So far we have been using exclusively numarray but now I decided it's time to slowly but sure migrate to numpy. What is the proper way to reference these packages ? Thanks to everyone i

Re: [Numpy-discussion] how to reference Numerical Python in a scientific publication

2006-08-09 Thread Paul Dubois
P. F. Dubois, K. Hinsen, and J. Hugunin, "Numerical Python", Computers in Physics, v. 10, #3, May/June 1996. is one reference people have used. Others simply refer to the website. The new book might be the best for numpy itself, dunno. Related papers are: David Ascher, P. F. Dubois, Konrad Hinse

[Numpy-discussion] Segmentation Fault with Numeric 24.2 on Mac OS X 10.4 Tiger (8.7.0)

2006-08-09 Thread Daran L. Rife
Hello, I recently switched from a Debian Linux box to a Mac G5 PowerPC, running Mac OS X 10.4 Tiger (8.7.0). I use the Python Numeric package extensively, and have come to depend upon it. In my view, this piece of software is truly first rate, and it has greatly improved my productivity in the are