Location of an item in the underlying memory.
(indices, t)
| 484 | return lst |
| 485 | |
| 486 | def memory_index(indices, t): |
| 487 | """Location of an item in the underlying memory.""" |
| 488 | memlen, itemsize, ndim, shape, strides, offset = t |
| 489 | p = offset |
| 490 | for i in range(ndim): |
| 491 | p += strides[i]*indices[i] |
| 492 | return p |
| 493 | |
| 494 | def is_overlapping(t): |
| 495 | """The structure 't' is overlapping if at least one memory location |
no outgoing calls
no test coverage detected
searching dependent graphs…