-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
find() doesn't support multiple conditions #6851
Comments
I think this is an operator precedence issue: julia> find((a.>5) & (a .<9))
3-element Array{Int64,1}:
6
7
8
julia> find (5.<a.<9)
3-element Array{Int64,1}:
6
7
8 |
Oh, cool. I'm not sure if matlab behaves this way but I'm glad we have this available. Thanks! |
What would be great is if find can take an expression and evaluate it over the input, instead of forming the intermediate temporary array. |
@ViralBShah : You mean like: ???
|
This creates several temporaries too under the hood. |
@ViralBShah There's still a lot of mystery under the bonnet for me. How does |
This is #5187. I've been thinking I'd bump it at the start of the .4 cycle and champion it a bit more loudly. I'd really like to be able to write multiple conditions without parentheses. |
The text was updated successfully, but these errors were encountered: