I am manually modifying the shape and strides of NumPy arrays which may (or may not) invalidate the contiguity flags.
NPY_C_CONTIGUOUS (or NPY_F_CONTIGUOUS)? I haven't tried these myself so I am not entirely clear on their use but you may try to employ:
PyArray_CLEARFLAGSPyArray_ENABLEFLAGSFound in the Numpy v1.7 Array API
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With