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