Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-13 Thread Robert Kern
On Mon, Oct 13, 2008 at 13:36, Linda Seltzer <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: >> No matter how you slice it, you're going to need to learn a bit about >> computer programming in general, and python in particular, in order to >> be productive with numpy. > WHERE IS THE MODERATO

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-13 Thread Linda Seltzer
Christopher Barker wrote: > No matter how you slice it, you're going to need to learn a bit about > computer programming in general, and python in particular, in order to > be productive with numpy. WHERE IS THE MODERATOR? I deserve not to be insulted in front of the professional community with per

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-13 Thread Chris.Barker
Linda Seltzer wrote: > I would appreciate it if someone could answer my question without > referring to subjects such as APIs and interfaces, since I am only > concerned with a mathematical application at this time. caution: this is a bit rude -- that was an excellent and informative answer to yo

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-13 Thread Chris.Barker
Bill Baxter wrote: >import numpy as npy Bill, for what it's worth, I *think* this group has reached a consensus to use: import numpy as np We all have different tastes for how they might want to spell it, but the more consistent we are, the easier it will be for newbies. -Chris -- Chri

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Robert Kern
On Sat, Oct 11, 2008 at 00:38, Linda Seltzer <[EMAIL PROTECTED]> wrote: > Thank you. It produced this error message: > NameError: global name 'npy' is not defined Note the line: import numpy as npy >> In numpy it's >>import numpy as npy >>a = npy.zeros((256,256)) >> >>a[0,0] = 1.0

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
Thank you. It produced this error message: NameError: global name 'npy' is not defined > In numpy it's >import numpy as npy >a = npy.zeros((256,256)) > >a[0,0] = 1.0 >a[200,123] = -42.0 ># etc... > > I think you were just missing the extra parentheses in the numpy > version of "

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Bill Baxter
On Sat, Oct 11, 2008 at 2:16 PM, Linda Seltzer <[EMAIL PROTECTED]> wrote: > I would appreciate it if someone could answer my question without > referring to subjects such as APIs and interfaces, since I am only > concerned with a mathematical application at this time. > In most tutorials, array exa

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
I would appreciate it if someone could answer my question without referring to subjects such as APIs and interfaces, since I am only concerned with a mathematical application at this time. In most tutorials, array examples are of the form: a = array([1, 2, 3], [4, 5, 6] ) The problem with this is t

Re: [Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Robert Kern
On Fri, Oct 10, 2008 at 21:42, Linda Seltzer <[EMAIL PROTECTED]> wrote: > This worked: > from numpy.oldnumeric import * To be clear, you mean that this worked to replace the statement "from Numeric import *" in the older code that you mentioned in your previous thread. > Should I use > from numpy

[Numpy-discussion] Using 2-D arrays in Numeric Python (numpy)

2008-10-10 Thread Linda Seltzer
This worked: from numpy.oldnumeric import * Should I use from numpy import * (Does the first statement use outdated software?) I want to use 2-D arrays. Please advise me on the best way to do this. ___ Numpy-discussion mailing list Numpy-discussion@sc