Returns 1 if the arrays have overlapping data, 0 otherwise */
| 152 | |
| 153 | /* Returns 1 if the arrays have overlapping data, 0 otherwise */ |
| 154 | NPY_NO_EXPORT int |
| 155 | arrays_overlap(PyArrayObject *arr1, PyArrayObject *arr2) |
| 156 | { |
| 157 | mem_overlap_t result; |
| 158 | |
| 159 | result = solve_may_share_memory(arr1, arr2, NPY_MAY_SHARE_BOUNDS); |
| 160 | if (result == MEM_OVERLAP_NO) { |
| 161 | return 0; |
| 162 | } |
| 163 | else { |
| 164 | return 1; |
| 165 | } |
| 166 | } |
no test coverage detected