Skip to content

Indexing SArray with SArray of CartesianIndex creates an MArray #635

Open
@TheBB

Description

@TheBB

For example (on StaticArrays v0.11)

julia> b = SVector(1);

julia> b[SVector(1)]
1-element SArray{Tuple{1},Int64,1,1}:
 1

julia> b[SVector(CartesianIndex(1))]
1-element MArray{Tuple{1},Int64,1,1}:
 1

Shouldn't this be an SArray?

Metadata

Metadata

Assignees

No one assigned

    Labels

    arraysAbstractArray interface and array operationsbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions