Skip to content

slicedim inconsistency for BitVector vs. other AbstractVectors #20233

Closed

Description

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.

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

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