[Python-ideas] matrix operations on dict :)
Robert Kern
robert.kern at gmail.com
Thu Feb 9 12:20:38 CET 2012
On 2/9/12 2:44 AM, Terry Reedy wrote:
> On 2/8/2012 7:51 PM, Steven D'Aprano wrote:
>
>> Not necessarily. There is nothing in the API for Python lists that
>> *requires* that elements are stored in one continuous array. That's a
>> side-effect of the implementation.
>
> I believe NumPy uses multiple blocks, as does deque.
numpy uses uniformly strided memory starting from a single memory location,
which is not quite the same as using multiple blocks.
--
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-ideas
mailing list