Re: [Numpy-discussion] Understanding mgrid

2008-09-19 Thread Brad Malone
(point) Thanks, Brad On Fri, Sep 19, 2008 at 11:22 AM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 12:59, Brad Malone <[EMAIL PROTECTED]> wrote: > > Hi, I was wondering if someone could englighten me on what the > geometrical > > significance of num

[Numpy-discussion] Understanding mgrid

2008-09-19 Thread Brad Malone
Hi, I was wondering if someone could englighten me on what the geometrical significance of numpy.mgrid is. I can play around with it and see trends in the sizes and number of arrays, but why does it give the output that it does? Looking at the example shown below, why does it return a matrix and it

[Numpy-discussion] non-contiguous array error

2008-02-10 Thread Brad Malone
Hi, I am receiving a "AttributeError: incompatible shape for a non-contiguous array" error. A quick illustration of the type of code that gives me the error is shown below: from numpy import * list=[i for i in range(0,27)] c=array(list) c.shape=(3,3,3)

[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

[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 *