[Numpy-discussion] Best way to run python parallel

2007-03-28 Thread Brad Malone
Hi, I use python for some fairly heavy scientific computations (at least to be running on a single processor) and would like to use it in parallel. I've seen some stuff online about Parallel Python and mpiPy, but I don't know much about them. Is a python-specific program needed to run python in p

Re: [Numpy-discussion] Windows binary release?

2007-03-28 Thread Travis Oliphant
Christopher Ball wrote: > Hi, > > I wonder if anyone can tell me when the next release is planned? Or > specifically, any idea when a new Windows binary installer will be > released? > I've been meaning to soon, but I've been stressed with too many things on my plate. If anybody would like

[Numpy-discussion] vectorized methods

2007-03-28 Thread Anne Archibald
Hi, What is the current idiom for vectorizing instance methods? I don't need vectorization over self. For functions: from numpy import * @vectorize def f(x): if x>0: return 1 else: return 2 print f(array([-1,0,1])) does the right thing. But for instance methods: class u

[Numpy-discussion] Windows binary release?

2007-03-28 Thread Christopher Ball
Hi, I wonder if anyone can tell me when the next release is planned? Or specifically, any idea when a new Windows binary installer will be released? I'm interested because we'd like to release a new version of our neural map-modeling software (which depends on numpy) soon, but the subtract.re

Re: [Numpy-discussion] matrix indexing question (final post)

2007-03-28 Thread Stefan van der Walt
On Wed, Mar 28, 2007 at 07:05:00PM -0500, Alan Isaac wrote: > On Wed, 28 Mar 2007, Stefan van der Walt wrote: > > Matrices strike me as a bit of an anomaly. I would expect > > an N-dimensional container to contain (N-1)-dimensional > > objects. > > Yes indeed. Doesn't seem to be the way the m

Re: [Numpy-discussion] matrix indexing question (final post)

2007-03-28 Thread Alan Isaac
On Wed, 28 Mar 2007, Stefan van der Walt wrote: > Matrices strike me as a bit of an anomaly. I would expect > an N-dimensional container to contain (N-1)-dimensional > objects. Yes indeed. Cheers, Alan Isaac ___ Numpy-discussion mailing list Num

Re: [Numpy-discussion] matrix indexing question (final post)

2007-03-28 Thread Stefan van der Walt
On Wed, Mar 28, 2007 at 05:25:57PM -0500, Alan Isaac wrote: > given the surprising passion of the attacks at the > suggestion that perhaps iteration over a matrix might more > consistently yield arrays, I presumed there must be *many* > instances in which it was obviously desirable that such >

Re: [Numpy-discussion] matrix indexing question (final post)

2007-03-28 Thread Zachary Pincus
It's because the property that A[i] == A[i,...] is much more important to most numpy users than the results of a particular (mis) use of the matrix class. This has been explained in many different contexts over many different email messages by many different people. You're not looking at th

Re: [Numpy-discussion] matrix indexing question (final post)

2007-03-28 Thread Alan Isaac
On Wed, 28 Mar 2007, Robert Kern wrote: > People have been giving you reasons, over and over again. > You are simply refusing to listen to them. Exploring whether the reasoning is adequate is not the same as refusing to listen. I do not presume my view is correct. > You have a use case for a

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

2007-03-28 Thread Zachary Pincus
Very cool -- Thanks for digging into the code and making these fixes, Stéfan! The ndimage C code is non-trivial for sure. I'll test things out in the next couple of days. Thanks again, Zach On Mar 28, 2007, at 10:25 AM, Stefan van der Walt wrote: > On Wed, Mar 28, 2007 at 05:14:59PM +0200,

Re: [Numpy-discussion] matrix indexing question

2007-03-28 Thread Alan Isaac
On Tue, 27 Mar 2007, Zachary Pincus wrote: > M[i], which equals M[i,:] Of course this equality must break. That was stated at the outset. As I said before, this may be impossible or undesirable. But, as I said before, it seems prima facie natural for M[i] to be ordinary Python indexing while M

Re: [Numpy-discussion] Help with linear_least_squares

2007-03-28 Thread Christopher Barker
Brad Malone wrote: > Hi, I'm running into an error with linear least squares that I'm not > sure what to do about. For reference, I'm trying to fit a curve > corresponding to the example at the bottom of this wikipedia page: > http://en.wikipedia.org/wiki/Linear_least_squares > > My code loo

Re: [Numpy-discussion] Help with linear_least_squares

2007-03-28 Thread Travis Oliphant
Brad Malone wrote: > Hi, I'm running into an error with linear least squares that I'm not > sure what to do about. For reference, I'm trying to fit a curve > corresponding to the example at the bottom of this wikipedia page: > http://en.wikipedia.org/wiki/Linear_least_squares > You are mixing

[Numpy-discussion] Help with linear_least_squares

2007-03-28 Thread Brad Malone
Hi, I'm running into an error with linear least squares that I'm not sure what to do about. For reference, I'm trying to fit a curve corresponding to the example at the bottom of this wikipedia page: http://en.wikipedia.org/wiki/Linear_least_squares My code looks like this: from numpy import *

Re: [Numpy-discussion] use of concatenate with subclass of ndarray

2007-03-28 Thread Pierre GM
On Wednesday 28 March 2007 12:42:52 Bryce Hendrix wrote: > Thanks Pierre, works like a charm. One question though, how is defining > a class attribute in __new__ any more thread-safe? It's not, of course, and that's why it shouldn't be used. However, it's quite convenient and easier to use, and d

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

2007-03-28 Thread Stefan van der Walt
On Wed, Mar 28, 2007 at 05:14:59PM +0200, Stefan van der Walt wrote: > As for the values at the edges, I'm still working on it. OK, that was a one-line patch. Please test to see if there are any subtle conditions on the border that I may have missed. I know of one already, but I'd be glad if you

Re: [Numpy-discussion] use of concatenate with subclass of ndarray

2007-03-28 Thread Bryce Hendrix
Thanks Pierre, works like a charm. One question though, how is defining a class attribute in __new__ any more thread-safe? Bryce Pierre GM wrote: On Tuesday 27 March 2007 20:08:04 Bryce Hendrix wrote: We have a class which is a subclass of ndarray which defines __array_finalize__ to add an

Re: [Numpy-discussion] matrix indexing question

2007-03-28 Thread Robert Kern
Alan G Isaac wrote: >>> On Tue, 27 Mar 2007, Robert Kern apparently wrote: Gram-Schmidt orthogonalization > >> Alan G Isaac wrote: >>> I take it from context that you consider it desirable >>> to end up with a list of matrices? > > Robert wrote: >> Honestly, I don't care. You asked ab

[Numpy-discussion] Installing python/Numeric/ScientificPython

2007-03-28 Thread Joseph Mack NA3T
Dear List, I'm not a python programmer, but am familiar with installing programs on Linux. I'm installing some python packages for a user. The app calls Numeric/ScientificPython. I have a separate install in ~ so as not to overwrite the standard install while I'm getting it wo

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

2007-03-28 Thread Stefan van der Walt
Hi, I notice now that we've been having this discussion on the wrong list -- oops! We're nearly done, though. On Mon, Mar 26, 2007 at 04:16:51AM -0400, James Turner wrote: > For what it's worth, I'd agree with both of you that the numeric > overflow should be documented if not fixed. It sounds l

[Numpy-discussion] matlab, idle, interactivity and teaching

2007-03-28 Thread Giorgio Luciano
Hello to all, I've thread that apperead some time ago on this list about matlab and teaching. I've discovered python recently and translated part of the routine I use in python (www.chemometrics.it). Some of my collegue asked me if I could show them how to use python. For matlab user I guess th