Return a list of random items for structure 't' with format 'fmtchar'.
(fmt, t)
| 625 | return lshape, rshape, tuple(lslices), tuple(rslices) |
| 626 | |
| 627 | def randitems_from_structure(fmt, t): |
| 628 | """Return a list of random items for structure 't' with format |
| 629 | 'fmtchar'.""" |
| 630 | memlen, itemsize, _, _, _, _ = t |
| 631 | return gen_items(memlen//itemsize, '#'+fmt, 'numpy') |
| 632 | |
| 633 | def ndarray_from_structure(items, fmt, t, flags=0): |
| 634 | """Return ndarray from the tuple returned by rand_structure()""" |
no test coverage detected