Return a list of random items for structure 't' with format 'fmtchar'.
(fmt, t)
| 637 | return lshape, rshape, tuple(lslices), tuple(rslices) |
| 638 | |
| 639 | def randitems_from_structure(fmt, t): |
| 640 | """Return a list of random items for structure 't' with format |
| 641 | 'fmtchar'.""" |
| 642 | memlen, itemsize, _, _, _, _ = t |
| 643 | return gen_items(memlen//itemsize, '#'+fmt, 'numpy') |
| 644 | |
| 645 | def ndarray_from_structure(items, fmt, t, flags=0): |
| 646 | """Return ndarray from the tuple returned by rand_structure()""" |
no test coverage detected
searching dependent graphs…