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

Robert Kern robert.kern@gmail....
Sun Oct 12 03:23:21 CDT 2008


On Sun, Oct 12, 2008 at 03:11, David Cournapeau <cournape@gmail.com> wrote:
> On Sun, Oct 12, 2008 at 3:39 PM, Linda Seltzer
> <lseltzer@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