Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logical indexing with a vector into a matrix fails #10618

Closed
StefanKarpinski opened this issue Mar 24, 2015 · 1 comment
Closed

logical indexing with a vector into a matrix fails #10618

StefanKarpinski opened this issue Mar 24, 2015 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@StefanKarpinski
Copy link
Member

julia> rand(3,1)[[true,false,true]]
ERROR: BoundsError
 in checkbounds at abstractarray.jl:130
 in anonymous at array.jl:303
 in getindex at array.jl:319

julia> rand(3,1)[[2]]
1-element Array{Float64,1}:
 0.980098

Works fine when indexing with a vector of indices into a matrix; linear logical indexing should work.

@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Mar 24, 2015
@mbauman
Copy link
Member

mbauman commented Mar 24, 2015

(This is fixed in #10525)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants