I am manually modifying the shape and strides of NumPy arrays which may (or may not) invalidate the contiguity flags.
- Do I have to then manually check whether the strides match the values you would expect from the shape and
NPY_C_CONTIGUOUS
(orNPY_F_CONTIGUOUS
)? - Is there an API function which will do this for me and automatically clear or enable flags as is appropriate?