Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread David Cournapeau
On Wed, Sep 17, 2008 at 7:13 PM, Francis <[EMAIL PROTECTED]> wrote: > In general the IT dep. don't want changes since changes require weeks > of testing to make sure that existing applications are not > conflicting, etc. I am not sure they would fulfill my request. > Especially since it has no prio

Re: [Numpy-discussion] Help speeding up element-wise operations for video processing

2008-09-17 Thread Brendan Simons
Thanks for the cogent response Fransesc. It's nice to know when you're up against a "Really Hard Problem", rather than just missing something obvious. I've started reading Ulrich Drepper report, and it looks like a great place to start. Cheers, Brendan On 17-Sep-08, at 5:34 AM, Frances

Re: [Numpy-discussion] profiling line by line

2008-09-17 Thread Robert Kern
On Wed, Sep 17, 2008 at 18:09, Ondrej Certik <[EMAIL PROTECTED]> wrote: > On Wed, Sep 17, 2008 at 3:56 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> On Mon, Sep 15, 2008 at 11:13, Arnar Flatberg <[EMAIL PROTECTED]> wrote: >>> That would make me an extremely happy user, I've been looking for this fo

Re: [Numpy-discussion] profiling line by line

2008-09-17 Thread Ondrej Certik
On Wed, Sep 17, 2008 at 3:56 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Mon, Sep 15, 2008 at 11:13, Arnar Flatberg <[EMAIL PROTECTED]> wrote: >> That would make me an extremely happy user, I've been looking for this for >> years! >> I can't imagine I'm the only one who profiles some hundred li

Re: [Numpy-discussion] profiling line by line

2008-09-17 Thread Robert Kern
On Wed, Sep 17, 2008 at 07:12, Arnar Flatberg <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 17, 2008 at 3:56 AM, Robert Kern <[EMAIL PROTECTED]> wrote: >> >> So, I could use some comments on the workflow. Does this look sensible >> to everyone? How else would you like to use it? > > Works for me. I wo

Re: [Numpy-discussion] color filtering

2008-09-17 Thread paul taney
> coords were tossed. > > Can you show me a cheap way to return a line: > > > >line=[(3, 0), (2, 1), (0, 2), (1, 2), (3, 2), (0, > 3), (4, 3), (3, 4)] > > > > type-o-thing? > > Sure, how about > > np.array(bluemask.nonzero()).swapaxes(0,1) > > Does that do what you want? Exactly. Very co

Re: [Numpy-discussion] installing numpy and scipy on OS X 10.4

2008-09-17 Thread Robert Kern
On Wed, Sep 17, 2008 at 11:54, W Bradley Knox <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm trying to install numpy and scipy on my Mac that runs OS X 10.4. > It looks like my only option is to use the subversion copies. After > running "python setup.py install" in the numpy directory, it seems

Re: [Numpy-discussion] color filtering

2008-09-17 Thread Stéfan van der Walt
2008/9/17 paul taney <[EMAIL PROTECTED]>: >> # silly algorithm for guessing blue pixels >> >>> bluemask = (a[...,2] > 1.25*a[...,1]) & (a[...,2] > 1.25*a[...,0]) > > Thanks Stéfan, that"s very cool. But the xy coords were tossed. > Can you show me a cheap way to return a line: > >line=[(3, 0),

Re: [Numpy-discussion] color filtering

2008-09-17 Thread paul taney
> Maybe this helps: > > # silly algorithm for guessing blue pixels > >>> bluemask = (a[...,2] > 1.25*a[...,1]) & (a[...,2] > 1.25*a[...,0]) > > >>> a[bluemask, :] > array([[107, 11, 185], >[101, 91, 251], >[ 61, 23, 79], >[ 25, 131, 211], >[169, 83, 214], >

Re: [Numpy-discussion] installing numpy and scipy on OS X 10.4

2008-09-17 Thread W Bradley Knox
Okay, nevermind. I was able to install using the Superpack, even though I'm using MacPython (ActivePython is supposedly required). Brad On Wed, Sep 17, 2008 at 11:54 AM, W Bradley Knox <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm trying to install numpy and scipy on my Mac that runs OS X 10.

[Numpy-discussion] installing numpy and scipy on OS X 10.4

2008-09-17 Thread W Bradley Knox
Hi everyone, I'm trying to install numpy and scipy on my Mac that runs OS X 10.4. It looks like my only option is to use the subversion copies. After running "python setup.py install" in the numpy directory, it seems to install, despite some error messages tucked away in the middle of the installa

Re: [Numpy-discussion] color filtering

2008-09-17 Thread Stéfan van der Walt
Hey Paul Maybe this helps: # silly algorithm for guessing blue pixels >>> bluemask = (a[...,2] > 1.25*a[...,1]) & (a[...,2] > 1.25*a[...,0]) >>> a[bluemask, :] array([[107, 11, 185], [101, 91, 251], [ 61, 23, 79], [ 25, 131, 211], [169, 83, 214], [ 2, 88

Re: [Numpy-discussion] Build Numpy Source using Visual Studio 6.0

2008-09-17 Thread Richie
Thanks for your message Matthieu I agree that would give me a build but I'd rather have Numpy and Scipy source codesets each in their own workspaces so that as we try to port across to PharLap we have full visibility. I wonder if anyone has done similar in visual studio 2003 or higher? I'm runnin

[Numpy-discussion] color filtering

2008-09-17 Thread paul taney
Hi, I"m just learning numpy and I am not a math. I just need it. I need to do a color filter; I have it working in python but it runs forever on some of my images. And I dont know enuf c or c++ to use weave (or Boost or Pyrex or...) This looks like the best way, and I have somebody who is a

Re: [Numpy-discussion] profiling line by line

2008-09-17 Thread Arnar Flatberg
On Wed, Sep 17, 2008 at 3:56 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > > So, I could use some comments on the workflow. Does this look sensible > to everyone? How else would you like to use it? > Works for me. I would love to use it as a part of an ipython session. Initially, I sprinkled som $

Re: [Numpy-discussion] Build Numpy Source using Visual Studio 6.0

2008-09-17 Thread Matthieu Brucher
2008/9/17 Richie <[EMAIL PROTECTED]>: > Hello > > I wonder if anyone can advise me or has done similar to the > following? > > Basically I've downloaded the Python 2.5.2 source code that builds > with Visual Studio 6.0. I've built Python for windows. This was easy > (it even came with the pcbuild.d

Re: [Numpy-discussion] numpy.linalg.eig

2008-09-17 Thread Nadav Horesh
Did you edit site.cfg to use optimised libraries (ATLAS, MKL, whatever)? Nadav On Tue, 2008-09-16 at 17:33 +0100, Tommy Carstensen wrote: > Dear Robert Kern, > > Thanks for your interest in helping me. > > Previously I used LinearAlgebra.Heigenvectors. I should have switched to > numpy.linal

[Numpy-discussion] Python objects in Numpy: compatibility issues with methods and functions

2008-09-17 Thread Felix Richter
Hi all, for my calculations, I need multi-precision arithmetics. For this, I use the wonderful Python-only mpmath (http://code.google.com/p/mpmath/) and store and handle my data in Numpy arrays. I thus have Numpy arrays with dtype=object holding mpmath objects. Now, some of the array operation

[Numpy-discussion] Build Numpy Source using Visual Studio 6.0

2008-09-17 Thread Richie
Hello I wonder if anyone can advise me or has done similar to the following? Basically I've downloaded the Python 2.5.2 source code that builds with Visual Studio 6.0. I've built Python for windows. This was easy (it even came with the pcbuild.dsw workspace file). Great! Now comes the troubled b

Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread David Cournapeau
Francis wrote: > In general the IT dep. don't want changes since changes require weeks > of testing to make sure that existing applications are not > conflicting, etc. I feel your pain. In such case, I ask if it is possible to ask for vmware installation: nowadays, cpu are fast enough such as ru

Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread Francis
In general the IT dep. don't want changes since changes require weeks of testing to make sure that existing applications are not conflicting, etc. I am not sure they would fulfill my request. Especially since it has no priority at all. I am installing Sage math now. Although I would like to avoid

[Numpy-discussion] [numpy 1.1.1] Opteron 254 has SSE 3 ???

2008-09-17 Thread Matthieu Brucher
Hi, I'd like to use numpy.distutils.cpuinfo to check if I can enable some flags during compilation of Fortran code. The issue I face is that an Opteron 254 does not have SSE3. So says /proc/cpuinfo. But in fact _has_sse3() returns True on this paltform. But not _has_ssse3(). What are the differenc

Re: [Numpy-discussion] Help speeding up element-wise operations for video processing

2008-09-17 Thread Francesc Alted
A Wednesday 17 September 2008, Brendan Simons escrigué: [clip] > I would love a c-types code snippet. I'm not very handy in c. Since > I gather numpy is row-major, I thought I up and down crops very > quickly by moving the start and end pointers of the array. For > cropping left and right, is th

Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread David Cournapeau
Francis wrote: > > I can't open rpm files so I opened numpy with archive manager and > extracted Numpy to site-packages. Can't you ask your admin to install rpm packages ? Uncompressing the rpm and putting them into random places is unlikely to work. > Unfortunately importing numpy > results in

Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread Francis
On Sep 17, 2:37 am, David Cournapeau <[EMAIL PROTECTED]> wrote: > Francis wrote: > > > To be frank, I am bit of noob, but not completely. I use the gfortran > > make.inc to build lapack. The make.inc file to build and install atlas > > is using gfortran.  I used the --fcompiler=gfortran flag. I don

Re: [Numpy-discussion] building numpy locally but get error: undefined symbol: zgesdd_

2008-09-17 Thread David Cournapeau
On Wed, Sep 17, 2008 at 11:38 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > David Cournapeau wrote: >> >> I am really sorry for all this trouble. The last solution you could try, >> with a bit old packages is my own repository, with Centos packages: >> >> http://download.opensuse.org/repositori

[Numpy-discussion] numpy and stackless

2008-09-17 Thread SimonPalmer
Has anyone tried mixing numpy with stackless? I am wondering if there are any obvious reasons why it would not work. I am thinking specifically of issues that may arise using the stackless microthreads. ___ Numpy-discussion mailing list Numpy-discussion