@ Scipy lecture notes, Edition 2017.1
https://www.scipy-lectures.org/_downloads/ScipyLectures-simple.pdf
p56
3.1.6 Copies and views
https://www.scipy-lectures.org/intro/numpy/array_object.html#copies-and-views
(Note:下記、強調部分は記事執筆者が強調)
You can use
np.may_share_memory()
to check if two arrays share the
same memory block. Note however, that this uses heuristics and may give you false positives.
A return of True does not necessarily mean that the two arrays share any element. It just means that they might.