[Numpy-discussion] test if two arrays share the same data

Ernest Adrogué eadrogue@gmx....
Sun Sep 5 15:42:32 CDT 2010


 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.

Bye :)
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list