reduce to be removed?

Robert Kern robert.kern at gmail.com
Wed Nov 15 03:02:21 EST 2006


Antoon Pardon wrote:
> On 2006-11-15, Robert Kern <robert.kern at gmail.com> wrote:
>> Dustan wrote:
>>
>>> 2. While I haven't taken a good look at NumPy, my intuition tells me it
>>> won't work with complex data types, which wouldn't work for me at all.
>>>
>>> Am I correct on that second one?
>> No. numpy can make arrays of Python objects in addition to arrays of double,
>> unsigned int, etc.
> 
> Does numpy still gain you much if you have arrays of Python objects?

It depends on what you want out of it. You won't get fast math, but you will get
convenient multidimensional indexing, slicing, stacking, reshaping, and
transposition.

-- 
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 Python-list mailing list