Re: [Numpy-discussion] PyArray_FromDimsAndData weird seg fault

2007-05-03 Thread Travis Oliphant
Trevor M Cickovski wrote: > Hi, > > I'm using SWIG to wrap a function that calls the NumPy routine > PyArray_FromDimsAndData. > > PyObject* toArray() { > int dims = 5; > double* myH; > myH = (double*)malloc(dims*sizeof(double)); > myH[0] = 0; myH[1] = 1; myH[2] = 2; myH[3] = 3;

Re: [Numpy-discussion] linux cluster installation

2007-05-03 Thread Christian K
John Washakie wrote: > From: "John Washakie" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Tue, 1 May 2007 17:38:52 +0200 > Subject: linux cluster installation > What is the best way to install numpy and ultimately scipy on a > cluster of linux machines so that you just install it once? I ima

[Numpy-discussion] linux cluster installation

2007-05-03 Thread John Washakie
From: "John Washakie" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue, 1 May 2007 17:38:52 +0200 Subject: linux cluster installation What is the best way to install numpy and ultimately scipy on a cluster of linux machines so that you just install it once? I imagine you have to be root to do th

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-05-03 Thread Steven Bethard
On 4/30/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > GvR wrote: > > So how about we reduce the scope of our (!) PEP (or perhaps of a new > > one) to two items: (a) add @abstractmethod, and (b) overload > > isinstance() and issubclass()? Library authors can do everything they > > want with those, a

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-05-03 Thread Bill Janssen
GvR wrote: > So how about we reduce the scope of our (!) PEP (or perhaps of a new > one) to two items: (a) add @abstractmethod, and (b) overload > isinstance() and issubclass()? Library authors can do everything they > want with those, and we can always add a specific set of ABCs for > containers a

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-05-03 Thread Talin
Guido van Rossum wrote: > Maybe we should stop trying to capture radically different > mathematical number systems using classes or types, and limit > ourselves to capturing the systems one learns in high school: C, R, Q, > Z, and (perhaps) N (really N0). The concrete types would be complex <: > C,

Re: [Numpy-discussion] Building numpy - setting the run path

2007-05-03 Thread Peter C. Norton
On Sat, Apr 28, 2007 at 04:20:30PM +0900, David Cournapeau wrote: > Peter C. Norton wrote: > > Building numpy for my company's solaris distribution involves requring > > a run_path for the lapack+blas libraries we're using (libsunperf, > > though I'm considering swapping out for gsl since we may us

Re: [Numpy-discussion] matlab vs. python question

2007-05-03 Thread Benjamin Thyreau
Le Samedi 28 Avril 2007 20:03, Simon Berube a écrit : > (...) > On the other hand, if you are more interested in small > projects where speed of development is more important than long term > sustainability of the code Matlab is probably better. This is usually > the case in research environment,

[Numpy-discussion] cannot compile under centos 5 after weekend svn update

2007-05-03 Thread Gennan Chen
Hi! All, I cannot compile numpy anymore after last weekend's update. Anyone know what's wrong?? [EMAIL PROTECTED]:numpy]$ python setup.py config Running from numpy source directory. F2PY Version 2_3730 blas_opt_info: blas_mkl_info: Traceback (most recent call last): File "setup.py", line 8

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-05-03 Thread Steven Bethard
On 4/29/07, Talin <[EMAIL PROTECTED]> wrote: > If it were technically possible, I would recommend that this PEP have to > run the same gauntlet that any other large library addition would, which > is to go through a long period of community feedback and criticism, > during which a large number of p

[Numpy-discussion] PyArray_FromDimsAndData weird seg fault

2007-05-03 Thread Trevor M Cickovski
Hi, I'm using SWIG to wrap a function that calls the NumPy routine PyArray_FromDimsAndData. PyObject* toArray() { int dims = 5; double* myH; myH = (double*)malloc(dims*sizeof(double)); myH[0] = 0; myH[1] = 1; myH[2] = 2; myH[3] = 3; myH[4] = 4; return PyArray_FromDimsAnd

Re: [Numpy-discussion] building pynetcdf-0.7 on OS X 10.4 intel

2007-05-03 Thread Christian Marquardt
On Wed, May 2, 2007 23:36, James Boyle wrote: > OS X 10.4.9, python 2.5, numpy 1.0.3.dev3726, netcdf 3.6.2 > > /usr/bin/ld: warning /Users/boyle5/netcdf-3.6.2/lib/libnetcdf.a > archive's cputype (7, architecture i386) does not match cputype (18) > for specified -arch flag: ppc (can't load from

Re: [Numpy-discussion] Possible Numeric bug with python-2.5

2007-05-03 Thread Francesc Altet
El dc 02 de 05 del 2007 a les 14:31 -0400, en/na Pierre GM va escriure: > On Wednesday 02 May 2007 14:15:06 Fernando Perez wrote: > > On 5/2/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I know Numeric is no longer supported, but I just upgraded to python-2.5 > > > and now I'm having problems in