Skip to content

FR: Preserve CA-ness when indexing component matrix with shaped components #257

Open
@marius311

Description

Would it be possible to make this not fall back to Array so you could more easily work with the result when slicing a subset of blocks?:

julia> c = ComponentVector(x=rand(2,2), y=rand(3), z=4);

julia> m = c * c';

julia> m[:x]
2×2×2×2 Array{Float64, 4}:
[:, :, 1, 1] = ...

Specifically I'm also interested in slicing multiple sub-blocks like m[[:x,:y]], although I'm imagining making the thing above work would be the first step. Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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