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

Ernest Adrogué eadrogue@gmx....
Sun Sep 5 16:14:26 CDT 2010


 5/09/10 @ 15:59 (-0500), thus spake Robert Kern:
> 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().

Ok, I trust you :)

Ernest


More information about the NumPy-Discussion mailing list