Return ndarray from the tuple returned by rand_structure()
(items, fmt, t, flags=0)
| 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()""" |
| 647 | memlen, itemsize, ndim, shape, strides, offset = t |
| 648 | return ndarray(items, shape=shape, strides=strides, format=fmt, |
| 649 | offset=offset, flags=ND_WRITABLE|flags) |
| 650 | |
| 651 | def numpy_array_from_structure(items, fmt, t): |
| 652 | """Return numpy_array from the tuple returned by rand_structure()""" |
no outgoing calls
no test coverage detected
searching dependent graphs…