[Numpy-discussion] test if two arrays share the same data
Sun Sep 5 15:59:34 CDT 2010
2010/9/5 Ernest Adrogué <firstname.lastname@example.org>:
> 5/09/10 @ 21:25 (+0200), thus spake Gael Varoquaux:
>> On Sun, Sep 05, 2010 at 09:12:34PM +0200, Ernest Adrogué wrote:
>> > Hi,
>> > How can it be done?
> Thanks Gael and Puneeth.
> I think the .base attribute is enough for what I want.
No, you really want may_share_memory().
"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