Numpy array neither C or F contiguous implications
问题 TL;DR Question Regarding numpy arrays that are neighter C or F contiguous (array's c_contiguous and f_contiguous flags are False): Can an array really be neither C or F contiguous? Or falsy flags just mean numpy can't figure out the correct contigious type? What are the performance implications on such arrays? Are there any optimizations we miss when staying in this state? An array for example: import numpy as np arr = np.random.randint(0, 255, (1000, 1000, 3), dtype='uint8') arr = arr[:, :,