[Numpy-discussion] How to detect ndarrays pointing to the same memory?

Hans Meine meine@informatik.uni-hamburg...
Wed Jul 22 10:51:18 CDT 2009

On Wednesday 22 July 2009 11:48:29 Gael Varoquaux wrote:
> On Fri, Jul 17, 2009 at 04:30:38PM +0200, Hans Meine wrote:
> > I have a simple question: How can I detect whether two arrays share the
> > same data?
> np.may_share_memory

Thanks a lot, that (and it's implementation, cf. byte_bounds) does help!


More information about the NumPy-Discussion mailing list