Does numpy.random.randint(), when supplied a size argument and thus returning an ndarray, always return a contiguous and aligned array?
(I'd like to be sure the return value's data, reached via PyArray_DATA, can be safely and efficiently indexed by C pointer arithmetic. The numpy.random.randint() docs don't make a clear guarantee.)
Aucun commentaire:
Enregistrer un commentaire