[Numpy-discussion] Checking if all array elements are whole numbers using the C-API

zoj613 blkzol001 at myuct.ac.za
Sun Jun 13 03:30:25 EDT 2021


After reading the docs, it turns out that  `np.PyArray_FROM_OTF(a,
np.NPY_LONG, np.NPY_ARRAY_FORCECAST) != np.PyArray_FROM_O(a)` prevents the
error from occurring.



--
Sent from: http://numpy-discussion.10968.n7.nabble.com/


More information about the NumPy-Discussion mailing list