[Numpy-discussion] Need **working** code example of 2-D arrays

Robert Kern robert.kern at gmail.com
Sun Oct 12 04:23:21 EDT 2008


On Sun, Oct 12, 2008 at 03:11, David Cournapeau <cournape at gmail.com> wrote:
> On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer
> <lseltzer at alumni.caltech.edu> wrote:
>
>> These are the import statements I used:
>> import numpy as npy
>> from numpy.oldnumeric import *
>
> Here is an example that works for any working numpy installation:
>
> import numpy as npy
> npy.zeros((256, 256)).

Well, except for that last period.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the NumPy-Discussion mailing list