News

Alternatively, we can split the 3D array into three 2D arrays, one for each colour channel. Note, this is different from above where we kept the entries as RGB vectors, where just two entries were 0.
It is possible to use generic Python objects as the dtype for a NumPy array, but if you do this, you’ll get no better performance with NumPy than you would with Python generally.