LoginSignup
0
0

More than 5 years have passed since last update.

Numpy > np.may_share_memory() > may give you false positives

Last updated at Posted at 2018-04-12

@ 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.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0