[Numpy-discussion] slices vs. range() over a certain axis

2008-11-14 Thread David Warde-Farley
I'm trying to clarify my understanding of how slicing works and how it differs from specifying a sequence of indices. My question is best illustrated by an example: In [278]: x = zeros((5,50)) In [279]: y = random_integers(5,size=50)-1 The behaviour that I want is produced by

Re: [Numpy-discussion] How to efficiently reduce a 1-dim 100-10000 element array with user defined binary function

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 6:22 PM, Kim Hansen <[EMAIL PROTECTED]> wrote: > Dear numpy-discussion, > > I am quite new to Python and numpy. > > I am working on a Python application using Scipy, where I need to > unpack and pack quite large amounts of data (GBs) into data structures > and convert them

[Numpy-discussion] How to efficiently reduce a 1-dim 100-10000 element array with user defined binary function

2008-11-14 Thread Kim Hansen
Dear numpy-discussion, I am quite new to Python and numpy. I am working on a Python application using Scipy, where I need to unpack and pack quite large amounts of data (GBs) into data structures and convert them into other data structures. Until now the program has been running amazingly efficie

Re: [Numpy-discussion] How to force build of included LAPACK?

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 5:31 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Fri, Nov 14, 2008 at 16:53, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > All, > > > > I recall seeing this before, but I can' find it in a search. The question > is > > how to force numpy to ignore any present blas/l

Re: [Numpy-discussion] How to force build of included LAPACK?

2008-11-14 Thread Robert Kern
On Fri, Nov 14, 2008 at 16:53, Charles R Harris <[EMAIL PROTECTED]> wrote: > All, > > I recall seeing this before, but I can' find it in a search. The question is > how to force numpy to ignore any present blas/lapack and use it's own. Hmm, tricky. I don't think there is a good way. On OS X, lapac

[Numpy-discussion] How to force build of included LAPACK?

2008-11-14 Thread Charles R Harris
All, I recall seeing this before, but I can' find it in a search. The question is how to force numpy to ignore any present blas/lapack and use it's own. Chuck ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 10:42 AM, Charles R Harris < [EMAIL PROTECTED]> wrote: > > > On Fri, Nov 14, 2008 at 10:13 AM, David Cournapeau <[EMAIL PROTECTED]>wrote: > >> On Fri, Nov 14, 2008 at 6:39 PM, Charles R Harris >> <[EMAIL PROTECTED]> wrote: >> >> > static float npy_tanhf( >> > ... >> > #defi

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 10:13 AM, David Cournapeau <[EMAIL PROTECTED]>wrote: > On Fri, Nov 14, 2008 at 6:39 PM, Charles R Harris > <[EMAIL PROTECTED]> wrote: > > > static float npy_tanhf( > > ... > > #define tanhf npy_tanhf > > I don't like this solution so much. The right solution IMHO is to > co

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread David Cournapeau
On Fri, Nov 14, 2008 at 6:39 PM, Charles R Harris <[EMAIL PROTECTED]> wrote: > static float npy_tanhf( > ... > #define tanhf npy_tanhf I don't like this solution so much. The right solution IMHO is to correctly detect the intrinsic so we don't define a function already available. In the mean tim

Re: [Numpy-discussion] numpy-docs and sphinx

2008-11-14 Thread Pauli Virtanen
Fri, 14 Nov 2008 14:13:31 +0100, Nils Wagner wrote: [clip] > I got a copy of utf8.def > ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/macros/ latex/contrib/t2/etc/utf-8/utf-8.def > > Where should I store that file ? See Damian's mail first -- if you have to just to install some pack

Re: [Numpy-discussion] numpy-docs and sphinx

2008-11-14 Thread Damian Eads
On Fedora, I recall having to install a separate package to get utf support. If you are using Fedora, try yum list | grep utf | grep tex On 11/14/08, Pauli Virtanen <[EMAIL PROTECTED]> wrote: > Fri, 14 Nov 2008 08:42:08 +0100, Nils Wagner wrote: > [clip] >> Is this source outdated >> svn co htt

Re: [Numpy-discussion] numpy-docs and sphinx

2008-11-14 Thread Nils Wagner
On Fri, 14 Nov 2008 09:21:17 + (UTC) Pauli Virtanen <[EMAIL PROTECTED]> wrote: >Fri, 14 Nov 2008 08:42:08 +0100, Nils Wagner wrote: > [clip] >> Is this source outdated >> svn co http://svn.python.org/projects/doctools/trunk >>sphinx-trunk ? > > I believe it's outdated. > >> I mean can I st

Re: [Numpy-discussion] ANN: I wrote some Numpy + SWIG + MinGW simple examples

2008-11-14 Thread Egor Zindy
Hi Soren, I noticed the same thing about my document, nothing about 2-D arrays yet! I will try and write some examples using the same document structure (argout, inplace and argoutview) and then condense the document (for instance, no need for a separate setup.py for each example). Regards, Eg

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 2:11 AM, David Cournapeau < [EMAIL PROTECTED]> wrote: > Charles R Harris wrote: > > > > > > It builds on Debian SPARC lenny also. The freeBSD buildbot has a > > configuration problem because Daniel tried to help you out by > > building ATLAS, but I think 1.3 is now buildin

Re: [Numpy-discussion] ANN: I wrote some Numpy + SWIG + MinGW simple examples

2008-11-14 Thread Søren Nielsen
Hi Egor, Thanks for a very nice tutorial! Have you tried doing manipulations with 2D arrays?? or do you know how to tackle it? Regards, Soren On Fri, Nov 14, 2008 at 12:32 AM, Egor Zindy <[EMAIL PROTECTED]> wrote: > Hello list! > > To get my head round the numpy.i interface for SWIG, I wrote so

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread David Cournapeau
Charles R Harris wrote: > > > It builds on Debian SPARC lenny also. The freeBSD buildbot has a > configuration problem because Daniel tried to help you out by > building ATLAS, but I think 1.3 is now building on all the standard > platforms. FreeBSD ATLAS port looked buggy to me when I tried, bec

Re: [Numpy-discussion] numpy-docs and sphinx

2008-11-14 Thread Pauli Virtanen
Fri, 14 Nov 2008 08:42:08 +0100, Nils Wagner wrote: [clip] > Is this source outdated > svn co http://svn.python.org/projects/doctools/trunk sphinx-trunk ? I believe it's outdated. > I mean can I still use it or should I switch to > > hg clone http://bitbucket.org/birkenfeld/sphinx > > Is it pos

Re: [Numpy-discussion] toward python 2.6: mtrand, gettimeofday and mingw

2008-11-14 Thread Charles R Harris
On Fri, Nov 14, 2008 at 12:55 AM, Charles R Harris < [EMAIL PROTECTED]> wrote: > > > On Fri, Nov 14, 2008 at 12:26 AM, David Cournapeau < > [EMAIL PROTECTED]> wrote: > >> Charles R Harris wrote: >> > >> > How is 1.3dev compiling with MSVC these days? It's working on the >> > buildbot now. >> >> It