Determine if two arrays share memory
Parameters: |
a, b : ndarray Input arrays max_work : int, optional Effort to spend on solving the overlap problem (maximum number of candidate solutions to consider). The following special values are recognized:
|
---|---|
Returns: |
out : bool |
Raises: |
numpy.TooHardError Exceeded max_work. |
See also
>>> np.may_share_memory(np.array([1,2]), np.array([5,8,9])) False
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.shares_memory.html