Re: [Numpy-discussion] Complete LAPACK needed (Frank Lagor)

2008-10-31 Thread David Cournapeau
On Sat, Nov 1, 2008 at 4:42 AM, Frank Lagor <[EMAIL PROTECTED]> wrote: > ImportError: liblapack.so: cannot open shared object file: No such file or > directory Where did you install atlas ? What does ldd says about lapack_lite.so module ? More likely, your problem is that you install atlas into

Re: [Numpy-discussion] help to speed up the python code

2008-10-31 Thread Yakov Keselman
My understanding of the root of the problem is that you end up with doing many evaluations of sinc. If this is so, one suggestion is to go with pre-computed filters. For example, if you are resampling from 9 points to 10, essentially you're trying to go from a function that is defined on points 0,

Re: [Numpy-discussion] Complete LAPACK needed (Frank Lagor)

2008-10-31 Thread Frank Lagor
Hi Everyone, I am trying to give an update here so that maybe it will be easier for someone to help me out now. I have gone through the lapack installation and the atlas installation and everything seems to have worked fine. Everything was compiled using the 'fPIC' option and I figured out how t

Re: [Numpy-discussion] Numpy matrix multiplication slo w even though ATLAS linked

2008-10-31 Thread Jan-Willem van de Meent
I resolved the issue after having another look at the build scripts. Thanks everyone for your help! For reference, the problem arose from a bad site.cfg file. In the past this file was necessary on ArchLinux to make numpy find the atlas libs. I tried removing it and now numpy to compiles correc

Re: [Numpy-discussion] About Random Number Generation

2008-10-31 Thread Pauli Virtanen
Fri, 31 Oct 2008 10:20:41 -0700, Wu, Kejia wrote: > Hi all, > > I tried the example code here: > http://numpy.scipy.org/numpydoc/numpy-20.html#71863 But failed: That's the documentation of the old Numeric package, though the name of the URL is severly misleading. >

Re: [Numpy-discussion] help to speed up the python code

2008-10-31 Thread Charles R Harris
On Thu, Oct 30, 2008 at 11:44 PM, frank wang <[EMAIL PROTECTED]> wrote: > Hi, Bob, > > The problem is that I want to resample my data with another sampling rate. > the two rates is very close. I use the formula: > > s(t)=sum(a_k*sinc(t-kTs)). > > the new sampling rate is Ts', so I have > s(nTs')=

Re: [Numpy-discussion] About Random Number Generation

2008-10-31 Thread Robert Kern
On Fri, Oct 31, 2008 at 12:20, Wu, Kejia <[EMAIL PROTECTED]> wrote: > Hi all, > > I tried the example code here: > http://numpy.scipy.org/numpydoc/numpy-20.html#71863 > But failed: > -- > rng.py, line 5, in >import RNG > ImportError: No module named RNG > --

Re: [Numpy-discussion] Numpy matrix multiplication slo w even though ATLAS linked

2008-10-31 Thread Jan-Willem van de Meent
On Friday 31 October 2008 13:45:56 Pauli Virtanen wrote: > Thu, 30 Oct 2008 22:19:01 +, Jan-Willem van de Meent wrote: > > On Thursday 30 October 2008 18:41:51 Charles R Harris wrote: > >> On Thu, Oct 30, 2008 at 5:19 AM, Jan-Willem van de Meent < > >> > >> [EMAIL PROTECTED]> wrote: > >> > Dear

[Numpy-discussion] About Random Number Generation

2008-10-31 Thread Wu, Kejia
Hi all, I tried the example code here: http://numpy.scipy.org/numpydoc/numpy-20.html#71863 But failed: -- rng.py, line 5, in import RNG ImportError: No module named RNG -- Any suggestion? Thanks at first. Also, can any

Re: [Numpy-discussion] newaxis and contiguity

2008-10-31 Thread Charles R Harris
On Fri, Oct 31, 2008 at 12:51 AM, David Cournapeau < [EMAIL PROTECTED]> wrote: > Hi, > >I was wondering about the following behavior: > > a = np.random.randn(10) > b = a[:. np.newaxis] > print b.flags # F_CONTIGUOUS and C_CONTIGUOUS are both false > > Is it for simplicity purpose, or is there

[Numpy-discussion] indexing numpy arrays in extensions created with ext_tools

2008-10-31 Thread Søren Nielsen
Hi, I'm trying to make a weave python extension to use in my program. I already did it in inline, but that doesn't work with py2exe (needs compiler), so I'm creating extensions instead using ext_tools. Is there a way I can use blitz with ext_tools? so that I can refer to numpy arrays like a(x,y)

Re: [Numpy-discussion] Numpy matrix multiplication slow even though ATLAS linked

2008-10-31 Thread Pauli Virtanen
Thu, 30 Oct 2008 22:19:01 +, Jan-Willem van de Meent wrote: > On Thursday 30 October 2008 18:41:51 Charles R Harris wrote: >> On Thu, Oct 30, 2008 at 5:19 AM, Jan-Willem van de Meent < >> >> [EMAIL PROTECTED]> wrote: >> > Dear all, >> > >> > This is my first post to this list. I am having perf

[Numpy-discussion] ANN: PyTables 2.1rc1 is ready to be tested

2008-10-31 Thread Francesc Alted
Announcing PyTables 2.1rc1 PyTables is a library for managing hierarchical datasets and designed to efficiently cope with extremely large amounts of data with support for full 64-bit file addressing. PyTables runs on top of the HDF5 libra

[Numpy-discussion] Simplifying compiler optimization flags logic (fortran compilers)

2008-10-31 Thread David Cournapeau
Hi, I was wondering whether it was really worth having a lot of magic going on in fcompilers for flags like -msse2 and co (everything done in get_flags_arch, for example). It is quite fragile (we had several problems wrt buggy compilers, buggy CPU detection), and I am not sure it buys us much

Re: [Numpy-discussion] unable to build atlas and lapack correctly

2008-10-31 Thread David Cournapeau
Alexandre Lacoste wrote: > Yes the cpu supports sse2 instructions. However, I can't find any > repository that have libatlas3gf-sse2 built for x86_64. Should i try > to force an install of a i386 deb. How can I do that? will it work ? No, it won't, and no, don't force it. I doubt dpkg would allow

[Numpy-discussion] newaxis and contiguity

2008-10-31 Thread David Cournapeau
Hi, I was wondering about the following behavior: a = np.random.randn(10) b = a[:. np.newaxis] print b.flags # F_CONTIGUOUS and C_CONTIGUOUS are both false Is it for simplicity purpose, or is there a more fundamental reason why a rank 2, 'column' vector can't be F_CONTIGUOUS in this case ? D

Re: [Numpy-discussion] unable to build atlas and lapack correctly

2008-10-31 Thread Alexandre Lacoste
> > Hi, > > Try "cat /proc/cpuinfo |grep sse2" :-) > > In my debian/sid/amd64 box, there's only libatlas3gf now. I guess it's > the same for ubuntu. > > Yes the cpu supports sse2 instructions. However, I can't find any repository that have libatlas3gf-sse2 built for x86_64. Should i try to force an