Skip to content

Mismatch between Base._to_indices and StaticArrayInterface.static_to_indices on 1.11 #35

@KristofferC

Description

@KristofferC
julia> a = ones(2, 2, 1)
2×2×1 Array{Float64, 3}:
[:, :, 1] =
 1.0  1.0
 1.0  1.0

julia> idxs = 1, fill(true, 2, 2)
(1, Bool[1 1; 1 1])

julia> StaticArrayInterface.static_to_indices(a, idxs)
(1, [1, 2, 3, 4])

julia> Base.to_indices(a, idxs)
(1, CartesianIndex{2}[CartesianIndex(1, 1), CartesianIndex(2, 1), CartesianIndex(1, 2), CartesianIndex(2, 2)])

The Base result was changed in 1.11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions