[Numpy-discussion] How to detect ndarrays pointing to the same memory?
Hans Meine
meine at informatik.uni-hamburg.de
Wed Jul 22 11:51:18 EDT 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!
Best,
Hans
More information about the NumPy-Discussion
mailing list