[Numpy-discussion] Finding indices and setting values
Magnus Lie Hetland
magnus at hetland.org
Wed May 21 11:53:04 CDT 2003
Perry Greenfield <perry at stsci.edu>:
[snip]
> (in a future version of numarray this will also work and the meaning
> should be clearer: data[where(((x-x0)**2+(y-y0)**2) < N**2)] = 1
Cool... Do you know which version?
--
Magnus Lie Hetland "In this house we obey the laws of
http://hetland.org thermodynamics!" Homer Simpson
More information about the Numpy-discussion
mailing list