Location of an item in the underlying memory.
(indices, t)
| 472 | return lst |
| 473 | |
| 474 | def memory_index(indices, t): |
| 475 | """Location of an item in the underlying memory.""" |
| 476 | memlen, itemsize, ndim, shape, strides, offset = t |
| 477 | p = offset |
| 478 | for i in range(ndim): |
| 479 | p += strides[i]*indices[i] |
| 480 | return p |
| 481 | |
| 482 | def is_overlapping(t): |
| 483 | """The structure 't' is overlapping if at least one memory location |