[Numpy-discussion] Indexing in Numpy vs. IDL?
Robert Kern
robert.kern@gmail....
Sun Nov 16 17:33:02 CST 2008
On Sun, Nov 16, 2008 at 17:30, Robert Kern <robert.kern@gmail.com> wrote:
> So-called "advanced indexing" where the indices are boolean or integer
> arrays will probably solve your problem, but we need more information
> on what you mean by index_one.
Sorry, I left out a sentence or two here. I also meant to say that
take() and compress() are legacy functions mostly subsumed by advanced
indexing. Also, instead of doing things like where(some_boolean_array,
1, 0), just use some_boolean_array.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion
mailing list