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

Boolean region-reductions are broken #4435

Closed
timholy opened this issue Oct 4, 2013 · 1 comment
Closed

Boolean region-reductions are broken #4435

timholy opened this issue Oct 4, 2013 · 1 comment
Milestone

Comments

@timholy
Copy link
Sponsor Member

timholy commented Oct 4, 2013

julia> A = [1:5]
5-element Array{Int64,1}:
 1
 2
 3
 4
 5

julia> any(A.>3)
true

julia> any(A.>3,1)
ERROR: no method any(Bool,Bool)
 in _F_ at array.jl:332
 in reducedim at array.jl:1483
 in any at abstractarray.jl:1367
julia> versioninfo()
Julia Version 0.2.0-prerelease+3919
Commit 22ca3b1* 2013-10-04 04:34:54 UTC
Platform Info:
  System: Linux (x86_64-linux-gnu)
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm
@JeffBezanson
Copy link
Sponsor Member

I'm pretty unhappy with the state of reductions (see #4235), except for +,sum and *,prod, which benefit from the existence of two names. any and all have some of the same problems as max and min (though not the hideous max(A, (), dim) methods).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants