Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
And, additionally setting the environment variable LD_LIBRARY_PATH to start with /data/home/u0038151/lib instead of ending with it, it picks up my own gsl, and gives the error message 0 [EMAIL PROTECTED] dot2 $ python -c import dot Traceback (most recent call last): File string, line 1, in

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Matthieu Brucher
# dot extension module _test = Extension(_test, [test_wrap.c, test.c], include_dirs = [numpy_include,'/data/home/ u0038151/include'], library_dirs = ['/data/home/u0038151/lib'] ) #

Re: [Numpy-discussion] library linking during numpy build

2008-11-04 Thread David Cournapeau
Frank Lagor wrote: Hi Everyone, I previously had a problem with installing numpy on a cluster of mine, but it seemed to be resolved. The installation was successful and the numpy code ran well. Unfortunately, this was not the case when I tried to run parallel code. The other processors

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Christopher Barker
Giovanni Samaey wrote: changing the library path and explicitly adding libraries =['gsl', 'gslcblas'] did the trick ! one other suggestion: if you want this to run any other machine, you might want to build gsl as a static lib, so it will get linked directly into your extension, and your

[Numpy-discussion] library linking during numpy build

2008-11-04 Thread Frank Lagor
Hi Everyone, I previously had a problem with installing numpy on a cluster of mine, but it seemed to be resolved. The installation was successful and the numpy code ran well. Unfortunately, this was not the case when I tried to run parallel code. The other processors have difficulty finding a

Re: [Numpy-discussion] library linking during numpy build

2008-11-04 Thread Frank Lagor
On Tue, Nov 4, 2008 at 12:07 PM, David Cournapeau [EMAIL PROTECTED] wrote: Frank Lagor wrote: Hi Everyone, I previously had a problem with installing numpy on a cluster of mine, but it seemed to be resolved. The installation was successful and the numpy code ran well. Unfortunately,

Re: [Numpy-discussion] passing a C array to embedded Python fromC code

2008-11-04 Thread Matthieu Brucher
Hi, I've translated it on my blog (http://matt.eifelle.com/) and published it this morning. Matthieu 2008/10/30 Anthony Floyd [EMAIL PROTECTED]: Hi Chris, Matthieu Brucher wrote: If you can follow a French tutorial, you can go on

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
Thanks, changing the library path and explicitly adding libraries =['gsl', 'gslcblas'] did the trick ! Thank you so much ! Giovanni On 04 Nov 2008, at 12:09, Matthieu Brucher wrote: The issue with the LD_LIBRARY_PATH would come up in any case. You have to put your gsl library folder before

Re: [Numpy-discussion] passing a C array to embedded Python fromC code

2008-11-04 Thread Christopher Barker
Matthieu Brucher wrote: I've translated it on my blog (http://matt.eifelle.com/) and published it this morning. Thanks, that's a very helpful article! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
Hi Matthieu, thank you for your prompt reply. On 04 Nov 2008, at 11:24, Matthieu Brucher wrote: # dot extension module _test = Extension(_test, [test_wrap.c, test.c], include_dirs = [numpy_include,'/data/home/ u0038151/include'],

[Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
Dear all, I am unsure about the correct place to put this question -- If this isn't the correct list, please let me know which place is more appropriate. I am trying to build an extension module in python that calls a C routine that depends on the GNU Scientific Library. I am using swig to

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Matthieu Brucher
The issue with the LD_LIBRARY_PATH would come up in any case. You have to put your gsl library folder before the system one if you want your gsl library to be used. For the cblas issue, it seems from Google you have to link against a CBLAS library as well to use the GSL (for instance blas or

Re: [Numpy-discussion] atlas not found, why?

2008-11-04 Thread Scott Sinclair
T J [EMAIL PROTECTED] 11/04/08 12:59 AM On Mon, Nov 3, 2008 at 10:46 AM, T J [EMAIL PROTECTED] wrote: Since these are all in the standard locations, I am building without a site.cfg. Here is the beginning info: Apparently, this is not enough. Only if I also set the ATLAS environment

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-11-04 Thread Fernando Perez
Hi everyone, thanks for all the feedback. Last call on this one. If nobody objects to the language that's written here: https://cirl.berkeley.edu/fperez/static/numpy-pep225/ in a couple of days I'll toss this over to python-dev. At that point it will be up to Guido and that team to decide

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-11-04 Thread jason-sage
Fernando Perez wrote: Hi everyone, thanks for all the feedback. Last call on this one. If nobody objects to the language that's written here: https://cirl.berkeley.edu/fperez/static/numpy-pep225/ one small typo: in the Why just go one step? section, you have the phrase: and it is

Re: [Numpy-discussion] (Late) summary of PEP-225 discussion at Scipy

2008-11-04 Thread Fernando Perez
On Tue, Nov 4, 2008 at 4:54 PM, [EMAIL PROTECTED] wrote: one small typo: in the Why just go one step? section, you have the phrase: and it is thus wortwhile solving the general problem wortwhile should be worthwhile. Thanks, fixed. I've posted a message about this to sage-devel, as they

[Numpy-discussion] New ufuncs

2008-11-04 Thread Charles R Harris
Hi All, I'm thinking of adding some new ufuncs. Some possibilities are - expadd(a,b) = exp(a) + exp(b) -- For numbers stored as logs: - absdiff(a,b) = abs(a - b) -- Useful for forming norms - absmax(a,b) = max(abs(a), abs(b)) - absadd(a,b) = abs(a) + abs(b) -- Useful for L_1 norm and

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread Charles R Harris
On Tue, Nov 4, 2008 at 10:37 PM, Anne Archibald [EMAIL PROTECTED]wrote: 2008/11/5 Charles R Harris [EMAIL PROTECTED]: Hi All, I'm thinking of adding some new ufuncs. Some possibilities are expadd(a,b) = exp(a) + exp(b) -- For numbers stored as logs: Surely this should be

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread T J
On Tue, Nov 4, 2008 at 9:37 PM, Anne Archibald [EMAIL PROTECTED] wrote: 2008/11/5 Charles R Harris [EMAIL PROTECTED]: Hi All, I'm thinking of adding some new ufuncs. Some possibilities are expadd(a,b) = exp(a) + exp(b) -- For numbers stored as logs: Surely this should be

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread Charles R Harris
On Tue, Nov 4, 2008 at 11:05 PM, T J [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 9:37 PM, Anne Archibald [EMAIL PROTECTED] wrote: 2008/11/5 Charles R Harris [EMAIL PROTECTED]: Hi All, I'm thinking of adding some new ufuncs. Some possibilities are expadd(a,b) = exp(a) + exp(b) --

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread Anne Archibald
On 05/11/2008, Charles R Harris [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 11:05 PM, T J [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 9:37 PM, Anne Archibald [EMAIL PROTECTED] wrote: 2008/11/5 Charles R Harris [EMAIL PROTECTED]: Hi All, I'm thinking of adding some

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread David Cournapeau
Charles R Harris wrote: Hmm... but I'm thinking one has to be clever here because the main reason I heard for using logs was that normal floating point numbers had insufficient range. So maybe something like logadd(a,b) = a + log(1 + exp(b - a)) where a b ? Yes, that's the idea. AFAIK,

Re: [Numpy-discussion] New ufuncs

2008-11-04 Thread Charles R Harris
On Tue, Nov 4, 2008 at 11:41 PM, Anne Archibald [EMAIL PROTECTED]wrote: On 05/11/2008, Charles R Harris [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 11:05 PM, T J [EMAIL PROTECTED] wrote: On Tue, Nov 4, 2008 at 9:37 PM, Anne Archibald [EMAIL PROTECTED] wrote: 2008/11/5