[Numpy-discussion] restrictions on fancy indexing

Neal Becker ndbecker2 at gmail.com
Fri Sep 17 13:47:47 EDT 2010


It's nice I can do:

f = np.linspace (0, 1, 100)
u[f<.1] = 0

cool, this seems to work also:

u[np.abs(f)<.1] = 0

cool!  But exactly what kind of expressions are possible here?  Certainly 
not arbitrary code.





More information about the NumPy-Discussion mailing list