[Numpy-discussion] Linux numpy 1.0.1 install failed

2007-05-18 Thread Gong, Shawn (Contractor)
Hi List, I am trying to install numpy 1.0.1 on Linux. (Numeric and numarray have been fine) System info: Redhat Linux kernel 2.4 with gcc 3.2.3 but no separate FORTRAN compiler. It has a Fortran 77 compiler (the one which comes as part of gcc) My questions: 1) install can't find ATLAS (*.a)

[Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-18 Thread Gong, Shawn (Contractor)
Sorry Robert, My email sent to mail-list bounced back 5 times. Shawn _ From: Gong, Shawn (Contractor) Sent: Friday, May 18, 2007 5:05 PM To: '[EMAIL PROTECTED]' Subject: RE: [Numpy-discussion] Linux numpy 1.0.1 install failed Hi Robert, I added ref

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
, Shawn (Contractor) wrote: 2) Then in Python, when I type import numpy It says: Running from numpy source directory Then I type numpy.sqrt(5) AttributeError: 'module' object has no attribute 'sqrt' I assume that this means numpy was not installed successfully. No, it means that you are running

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message: python Python 2.3.6 (#9, May 18 2007, 10:22:59) [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-53)] on linux2 Type help, copyright, credits or license for more information. import

Re: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed

2007-05-22 Thread Gong, Shawn (Contractor)
- From: Gong, Shawn (Contractor) Sent: Tuesday, May 22, 2007 1:28 PM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit this error message

[Numpy-discussion] Linux numpy 1.0.1 install failed - undefined symbol: pthread_join

2007-05-23 Thread Gong, Shawn (Contractor)
-Original Message- From: Gong, Shawn (Contractor) Sent: Tuesday, May 22, 2007 1:28 PM To: 'Discussion of Numerical Python' Subject: RE: [Numpy-discussion] FW: RE: Linux numpy 1.0.1 install failed Thank you David M. Cooke and Robert. Now I changed directory and ran python, Got further and hit

Re: [Numpy-discussion] Linux numpy 1.0.1 install failed - undefined symbol: pthread_join

2007-05-25 Thread Gong, Shawn (Contractor)
Hi Robert The override does the trick. It worked. Thanks and have a nice weekend. Shawn Okay, here is the full scoop: * The multi-threaded ATLAS is always tried first. This doesn't work for you since you compiled your Python without pthreads. * The standard library directories (/usr/lib,

[Numpy-discussion] memory error caused by astype()

2007-08-15 Thread Gong, Shawn (Contractor)
Hi list, When I do large array manipulations, I get out-of-memory errors. If the array size is 5000 by 6000, the following codes use nearly 1G. Then my PC displays a Python error box. The try/except won't catch it if the memory error happens in astype instead of array1* array2 try:

[Numpy-discussion] memory error caused by astype()

2007-08-22 Thread Gong, Shawn (Contractor)
Hi list, When I do large array manipulations, I get out-of-memory errors. For instance if the array size is 5000 by 6000, the following codes use nearly 1G of RAM. Then my PC displays a Python error box. The try/except won't even catch it if the error happens in astype instead of array1* array2

[Numpy-discussion] cubic spline function in numarray or numpy

2008-08-06 Thread Gong, Shawn (Contractor)
hi list, I am trying to find 1-D cubic spline function. Google search yields that there is a function called spline_filter1d in numarray. But I am not able to call it. Would someone point me to 1-D cubic spline function either in numarray or numpy? I can find source codes and enter in Python.

Re: [Numpy-discussion] cubic spline function in numarray or numpy

2008-08-06 Thread Gong, Shawn (Contractor)
. You want to look at scipy, a set of packages built on numpy that provide more sophisticated domain-specific functionality. Specifically, ndimage is part of *scipy*, not numpy. Zach On Aug 6, 2008, at 11:46 AM, Gong, Shawn (Contractor) wrote: hi list, I am trying to find 1-D cubic spline

[Numpy-discussion] non-linear array manipulation

2008-08-12 Thread Gong, Shawn (Contractor)
hi list, The following array manipulation takes long time because I can't find ways to do in row/column, and have to do cell by cell. Would you check to see if there is a nicer/faster way for this non-linear operation? for i in range(rows): for j in range(columns): a[i][j] =

Re: [Numpy-discussion] non-linear array manipulation

2008-08-12 Thread Gong, Shawn (Contractor)
(maximum(0, a**2-repeat(b*c, columns).reshape(rows, columns))) Nadav -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Gong, Shawn (Contractor) נשלח: ג 12-אוגוסט-08 17:37 אל: Discussion of Numerical Python נושא: [Numpy-discussion] non-linear array manipulation hi list, The following array

[Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Gong, Shawn (Contractor)
hi list, I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6 when I typed python setup.py build, I got error from hashlib.py File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in module md5 = __get_builtin_constructor('md5') File

Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Gong, Shawn (Contractor)
-discussion] numpy build error on Solaris,No module named _md5 Hi, Does: import md5 work? If it doesn't, it's a packaging problem. md5 must be available. Matthieu 2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]: hi list, I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6 when I