[SciPy-user] RE: [Numpy-discussion] Removing rows and columns of a matrix
Perry Greenfield
perry at stsci.edu
Tue Jul 29 12:25:02 CDT 2003
> from scipy import *
> from RandomArray import *
> from numarray import *
>
I believe the problem is in this part. You are getting some
functions (like rand) which return a numeric array which
some numarray functions don't recognize (we will be fixing
this soon, they should accept any Python sequence that fits
the basic requirements). For the moment you will need to
generate a numarray array for that function to work. In
the latest release you would do the imports as follows
(for version 0.6 and later)
from numarray.numeric import *
from numarray.random_array import *
a = random((5,5))
and so forth
Perry
More information about the Numpy-discussion
mailing list