Skip to content

introduce StructArrays #170

@johnnychen94

Description

@johnnychen94

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions