Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Robert Kern
Christian K wrote: > Hi, > I'm trying to build numpy from svn on ubuntu edgy with atlas provided by > ubuntu > package atlas3-sse2-dev which contains: > > /usr > /usr/lib > /usr/lib/sse2 > /usr/lib/sse2/libatlas.a > /usr/lib/sse2/libcblas.a > /usr/lib/sse2/libf77blas.a > /usr/lib/sse2/liblapack_a

Re: [Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Christian K wrote: > Hi, > I'm trying to build numpy from svn on ubuntu edgy with atlas provided by > ubuntu > package atlas3-sse2-dev which contains: [...] > > I tried both with and without a site.cfg: > > > [DEFAULT] > library_dirs = /usr/lib/sse2 > include_dirs = /usr/include > > [blas_op

[Numpy-discussion] building numpy with atlas on ubuntu edgy

2007-04-13 Thread Christian K
Hi, I'm trying to build numpy from svn on ubuntu edgy with atlas provided by ubuntu package atlas3-sse2-dev which contains: /usr /usr/lib /usr/lib/sse2 /usr/lib/sse2/libatlas.a /usr/lib/sse2/libcblas.a /usr/lib/sse2/libf77blas.a /usr/lib/sse2/liblapack_atlas.a /usr/lib/atlas /usr/lib/atlas/sse2 /

Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Bill Baxter
On 4/14/07, Hugo <[EMAIL PROTECTED]> wrote: > Bill Baxter wrote: > > On 4/14/07, Alan Isaac <[EMAIL PROTECTED]> wrote: > >>> On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote: > how do I find the index of the minimum value of an numpy > array? Example a = array([1.,2.,0.4,3.]) I want the

Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Hugo
Bill Baxter wrote: > On 4/14/07, Alan Isaac <[EMAIL PROTECTED]> wrote: >>> On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote: how do I find the index of the minimum value of an numpy array? Example a = array([1.,2.,0.4,3.]) I want the i=2 >> >> Just a reminder that there exist a very use

Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Bill Baxter
On 4/14/07, Alan Isaac <[EMAIL PROTECTED]> wrote: > > On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote: > >> how do I find the index of the minimum value of an numpy > >> array? Example a = array([1.,2.,0.4,3.]) I want the i=2 > >> since a[i] = 0.4 is the smallest value in a. > > > On Fri, 13 Apr

Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Alan Isaac
> On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote: >> how do I find the index of the minimum value of an numpy >> array? Example a = array([1.,2.,0.4,3.]) I want the i=2 >> since a[i] = 0.4 is the smallest value in a. On Fri, 13 Apr 2007, Timothy Hochberg wrote: > argmin Just a reminder t

Re: [Numpy-discussion] linking question

2007-04-13 Thread Robert Kern
Charles R Harris wrote: > All, > > ATLAS 3.7.30 produces two sets of libraries on my machine, the usual > bunch and a set prefixed by pt (posix threading). Am I correct in > assuming that numpy should be linked against the latter? Either should work, I think. If you have multiple processors, the

Re: [Numpy-discussion] index of minimum of array

2007-04-13 Thread Timothy Hochberg
On 4/13/07, Tommy Grav <[EMAIL PROTECTED]> wrote: Hi, how do I find the index of the minimum value of an numpy array? Example a = array([1.,2.,0.4,3.]) I want the i=2 since a[i] = 0.4 is the smallest value in a. argmin Cheers Tommy _

[Numpy-discussion] linking question

2007-04-13 Thread Charles R Harris
All, ATLAS 3.7.30 produces two sets of libraries on my machine, the usual bunch and a set prefixed by pt (posix threading). Am I correct in assuming that numpy should be linked against the latter? TIA, Chuck ___ Numpy-discussion mailing list [EMAIL PRO

[Numpy-discussion] index of minimum of array

2007-04-13 Thread Tommy Grav
Hi, how do I find the index of the minimum value of an numpy array? Example a = array([1.,2.,0.4,3.]) I want the i=2 since a[i] = 0.4 is the smallest value in a. Cheers Tommy ___ Numpy-discussion mailing list [EMAIL PROTECTED] http://proj

Re: [Numpy-discussion] Import problem

2007-04-13 Thread Tommy Grav
> Where did you get the scipy binary from? I was using the superpack from the scipy.org downloads page. I however found the library bundle up with g77 and downloaded that so now I get the import to work. I expect that there might be other libraries I am missing but I will have to deal with t

Re: [Numpy-discussion] Import problem

2007-04-13 Thread Robert Kern
Tommy Grav wrote: > I am trying to import scipy.optimize on my Mac OS X PowerPc and get > this error > > [EMAIL PROTECTED] Python/Astronomy --> python > ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on > Python 2.4.3 (#1, Apr 3 2006, 18:07:18) > [GCC 3.3 20030304 (Apple Computer

[Numpy-discussion] Import problem

2007-04-13 Thread Tommy Grav
I am trying to import scipy.optimize on my Mac OS X PowerPc and get this error [EMAIL PROTECTED] Python/Astronomy --> python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1, Apr 3 2006, 18:07:18) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Ty

Re: [Numpy-discussion] Newbie Questio: Unused in wild import

2007-04-13 Thread Robert Kern
Víctor A. Rodríguez wrote: > Hi all, > > I'm really new to Python and SciPy and having a strange problem. > I've installed Python 2.5 on Windows, numpy (last version), Eclipse 3.2 > and latest PyDev extensions. > > When importing numpy ("from numpy import *") the next warning is issued : > > Unu

Re: [Numpy-discussion] Help using numPy to create a very large multi dimensional array

2007-04-13 Thread Charles R Harris
On 4/13/07, Bruno Santos <[EMAIL PROTECTED]> wrote: Dear Sirs, I'm trying to use Numpy to solve a speed problem with Python, I need to perform agglomerative clustering as a first step to k-means clustering. My problem is that I'm using a very large list in Pyhton and the script is taking more th

Re: [Numpy-discussion] Newbie Questio: Unused in wild import

2007-04-13 Thread Steve Lianoglou
Hi Víctor, > I'm really new to Python and SciPy and having a strange problem. > I've installed Python 2.5 on Windows, numpy (last version), Eclipse > 3.2 > and latest PyDev extensions. > > When importing numpy ("from numpy import *") the next warning is > issued : > > Unused in wild import: fr

Re: [Numpy-discussion] endianness ufuncs

2007-04-13 Thread Timothy Hochberg
On 4/13/07, Hugo <[EMAIL PROTECTED]> wrote: Hi, As as astronomer I work with big endian arrays (pyfits 1.1rc1 with numpy 1.0) on little endian machines. When I try to make a ufunc (e.g. to convert from degrees to radians), it doesn't recognize the big endianness: In [3]: big = numpy.array([83.

Re: [Numpy-discussion] Fastest distance matrix calc

2007-04-13 Thread Timothy Hochberg
On 4/13/07, Bill Baxter <[EMAIL PROTECTED]> wrote: I think someone posted some timings about this before but I don't recall. The task is to compute the matrix D from two sets of vectors x (M,d) and y (N,d). The output should be D where D[i,j] is norm(x[i]-y[j]) The Matlab NetLab toolkit uses

[Numpy-discussion] Newbie Questio: Unused in wild import

2007-04-13 Thread Víctor A. Rodríguez
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm really new to Python and SciPy and having a strange problem. I've installed Python 2.5 on Windows, numpy (last version), Eclipse 3.2 and latest PyDev extensions. When importing numpy ("from numpy import *") the next warning is issued : U

Re: [Numpy-discussion] nd_image.affine_transform edge effects

2007-04-13 Thread Stefan van der Walt
On Wed, Apr 11, 2007 at 08:10:24PM -0400, James Turner wrote: > Hi Stefan, > > Sorry for the slow reply to this. > > > Thanks for spotting that. When I fix those lines, I see: > > > > [[ 3.901 3.099 2.099 1.1002 1.8998 2.901 ] > > [ 3.901 3.099 2.

[Numpy-discussion] Help using numPy to create a very large multi dimensional array

2007-04-13 Thread Bruno Santos
Dear Sirs, I'm trying to use Numpy to solve a speed problem with Python, I need to perform agglomerative clustering as a first step to k-means clustering. My problem is that I'm using a very large list in Pyhton and the script is taking more than 9minutes to process all the information, so I'm try

[Numpy-discussion] Fastest distance matrix calc

2007-04-13 Thread Bill Baxter
I think someone posted some timings about this before but I don't recall. The task is to compute the matrix D from two sets of vectors x (M,d) and y (N,d). The output should be D where D[i,j] is norm(x[i]-y[j]) The Matlab NetLab toolkit uses something like this to compute it: d2 = (x*x).sum

[Numpy-discussion] endianness ufuncs

2007-04-13 Thread Hugo
Hi, As as astronomer I work with big endian arrays (pyfits 1.1rc1 with numpy 1.0) on little endian machines. When I try to make a ufunc (e.g. to convert from degrees to radians), it doesn't recognize the big endianness: In [3]: big = numpy.array([83.4, 83.5, 83.9], dtype='>f8') In [4]: uradians