numarray question

SunX xiaohua_sun at yahoo.com
Sun Jul 18 12:48:06 EDT 2004


I tried to initialize a float point array by:

import numarray
xur = numarray.fromfunction(lambda x,y,z:x*y*z, (2, 2, 2))

but I ended up with an integer array even though x, y, and z are all floats.

BTW, how do you unzip NumTut in windows?  And is there a newer version?

Thank you
Howard



More information about the Python-list mailing list