[Numpy-discussion] test if two arrays share the same data
Robert Kern
robert.kern@gmail....
Sun Sep 5 15:59:34 CDT 2010
2010/9/5 Ernest Adrogué <eadrogue@gmx.net>:
> 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?
>>
>> np.may_share_memory
>
> Thanks Gael and Puneeth.
> I think the .base attribute is enough for what I want.
No, you really want may_share_memory().
--
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