[Numpy-discussion] restrictions on fancy indexing

John Salvatier jsalvati@u.washington....
Fri Sep 17 12:56:37 CDT 2010


There's a tutorial here: http://www.scipy.org/Cookbook/Indexing

Look down for the section on Fancy Indexing.

On Fri, Sep 17, 2010 at 10:47 AM, Neal Becker <ndbecker2@gmail.com> wrote:

> 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.
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100917/550a0e40/attachment.html 


More information about the NumPy-Discussion mailing list