We only have native support for an array of struct layout, the struct of array layout uses channelview/colorview but it losses the colorant information.
We might want to introduce StructArray to do some internal memory layout shifting without affecting the interface; it's still array of colorant but storing in a struct of array layout.
img = testimage("mandril")
out = StructArray(img)
out == img # true
Of course, need some more sophiscate benchmark to decide this.
We only have native support for an array of struct layout, the struct of array layout uses
channelview/colorviewbut it losses the colorant information.We might want to introduce
StructArrayto do some internal memory layout shifting without affecting the interface; it's still array of colorant but storing in a struct of array layout.Of course, need some more sophiscate benchmark to decide this.