Re: [Numpy-discussion] random number generation in python compared to gsl

2008-11-06 Thread Giovanni Samaey
Dear Robert, indeed, this is the difference ! Thanks ! Seeding numpy with 4357 gives identical sequences... Giovanni On 05 Nov 2008, at 19:01, Robert Kern wrote: > On Wed, Nov 5, 2008 at 08:05, Giovanni Samaey > <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >&g

Re: [Numpy-discussion] random number generation in python compared to gsl

2008-11-05 Thread Giovanni Samaey
> > Hi, > how about other seed values ? I thought seed=0, is (often) used to > mean a "random", i.e. current time or alike, seed value ... !? Not in this case: I always get the same sequence with seed=0 (different for both implementation, but the same each time I run it.) I got around it by ins

[Numpy-discussion] random number generation in python compared to gsl

2008-11-05 Thread Giovanni Samaey
Hi all, I have a question concerning the Mersenne Twister random number generation in numpy: when I seed it with 0, I get a different sequence of numbers in numpy, compared to GSL. In numpy: r = numpy.Random.RandomState(seed=0) r.uniform(size=5) > array([ 0.5488135 , 0.71518937,

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
ut 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 atlas > shoule be enough). > > Matthieu > >

Re: [Numpy-discussion] extension module with swig

2008-11-04 Thread Giovanni Samaey
t;", line 1, in ? File "dot.py", line 7, in ? import _dot ImportError: /data/home/u0038151/lib/libgsl.so.0: undefined symbol: cblas_ctrmv Again something different... Giovanni On 04 Nov 2008, at 11:46, Giovanni Samaey wrote: > Hi Matthieu, > > thank you for your pro

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/ >> u003

[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