Skip to content

slicedim inconsistency for BitVector vs. other AbstractVectors #20233

@martinholters

Description

@martinholters
julia> typeof(slicedim(ones(10), 1, 1))
Float64

julia> typeof(slicedim(trues(10), 1, 1))
BitArray{0}

For consistency with getindex, the latter should probably just give Bool, or else the former should give Array{Float64,0}. Found by working on #20154, which would fix this by making the latter give Bool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]needs decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions