Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@7of9

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

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?