Re: [Numpy-discussion] sort bug

2007-04-28 Thread Charles R Harris
On 4/28/07, Anton Sherwood <[EMAIL PROTECTED]> wrote: Travis Oliphant wrote: > One approach is to use argsort to create an index list of sorted > eigenvalues and then sort the eig and eigvector arrays before zipping > them together in a list of tuples. > > eig, val = numpy.linalg.eig(a) > > indx

Re: [Numpy-discussion] sort bug

2007-04-28 Thread Anton Sherwood
Travis Oliphant wrote: > One approach is to use argsort to create an index list of sorted > eigenvalues and then sort the eig and eigvector arrays before zipping > them together in a list of tuples. > > eig, val = numpy.linalg.eig(a) > > indx = eig.argsort() > eig = eig.take(indx) > val = val.t

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Jeffrey Yasskin
Thanks for the comments! On 4/26/07, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > > Forgive my ignorance, but I'm not really sure what this PEP is trying to > do. I don't want to sound negative, I really just don't understand the > purpose. I've just never encountered a problem this that I ca

Re: [Numpy-discussion] [Python-3000] PEP 31XX: A Type Hierarchy for Numbers (and other algebraic entities)

2007-04-28 Thread Jeffrey Yasskin
On 4/27/07, Alan Isaac <[EMAIL PROTECTED]> wrote: > On Fri, 27 Apr 2007, Jeffrey Yasskin wrote: > > Then again, doubles aren't a group either because of this > > imprecision, and I'm suggesting claiming they're > > a subclass of that, so maybe there's room in a practical > > language to make them a

Re: [Numpy-discussion] Compact way of performing array math with specified result type?

2007-04-28 Thread Travis Oliphant
Russell E. Owen wrote: > I often find myself doing simple math on sequences of numbers (which > might or might not be numpy arrays) where I want the result (and thus > the inputs) coerced to a particular data type. > > I'd like to be able to say: > > numpy.divide(seq1, seq2, dtype=float) > > bu

Re: [Numpy-discussion] matlab vs. python question

2007-04-28 Thread Simon Berube
Use a week functions are basically function that you use for a short period of time where a full fledged well designed program is more of a waste of time than anything else. Other then that, for what you miss it really, really depends on your applications and goals. I work on signal processing and

Re: [Numpy-discussion] fft and roll

2007-04-28 Thread Robert Kern
Ross Harder wrote: > Ahhh... that hadn't occured to me. Just installed > Enthon and assumed it was up to date, but it's not. > > Sorry for the misguided complaint. No worries. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by

Re: [Numpy-discussion] fft and roll

2007-04-28 Thread Ross Harder
Ahhh... that hadn't occured to me. Just installed Enthon and assumed it was up to date, but it's not. Sorry for the misguided complaint. Thanks, Ross --- Robert Kern <[EMAIL PROTECTED]> wrote: > Ross Harder wrote: > > Hi, > > I'm new to Numpy, just bought the guide last week. > > > > I've

Re: [Numpy-discussion] fft and roll

2007-04-28 Thread Robert Kern
Ross Harder wrote: > Hi, > I'm new to Numpy, just bought the guide last week. > > I've been disappointed by the difficulty I'm having > finding functions that are documented in the guide. > So > far I've had to spend a lot of time tracking down that > the fft2 and fftn functions from the fftpack

[Numpy-discussion] fft and roll

2007-04-28 Thread Ross Harder
Hi, I'm new to Numpy, just bought the guide last week. I've been disappointed by the difficulty I'm having finding functions that are documented in the guide. So far I've had to spend a lot of time tracking down that the fft2 and fftn functions from the fftpack library, which are documented in t

Re: [Numpy-discussion] numpy endian question

2007-04-28 Thread Matthew Brett
On 4/27/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > > Is there really no single method to call on an ndarray that asks: "what > endian are you" > > I know not every two-liner should be made into a convenience method, but > this seems like a good candidate to me. +1 I came across this sour

Re: [Numpy-discussion] matlab vs. python question

2007-04-28 Thread Matthew Brett
Hi, > However, I would disagree that Python with all its tools going to > replace Matlab well for everything. For large projects, for advanced > programmers and for non-standard things such as complex database > handling (in my case) it is definitly a clear winner. However, I would > be weary of g

Re: [Numpy-discussion] Building numpy - setting the run path

2007-04-28 Thread David Cournapeau
Peter C. Norton wrote: > Building numpy for my company's solaris distribution involves requring > a run_path for the lapack+blas libraries we're using (libsunperf, > though I'm considering swapping out for gsl since we may use that). > > The situation we're in is that we need gcc to get the -R for