We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 🐞
Seems like any does not behave correctly for ArrayPartition
any
ArrayPartition
Expected behavior
any(isnan, ArrayPartition([ NaN ], [ NaN ])) should return true, but currently returns false
any(isnan, ArrayPartition([ NaN ], [ NaN ]))
true
false
Minimal Reproducible Example 👇
julia> using RecursiveArrayTools julia> p = ArrayPartition([ NaN ], [ NaN ]) ([NaN], [NaN]) julia> collect(p) 2-element Vector{Float64}: NaN NaN julia> any(isnan, p) false julia> any(isnan, collect(p)) true
Interestingly enough, all does behave correctly
all
julia> p = ArrayPartition([ NaN ], [ NaN ]) ([NaN], [NaN]) julia> all(isnan, p) true julia> p = ArrayPartition([ NaN ], [ 2.0 ]) ([NaN], [2.0]) julia> all(isnan, p) false
Environment (please complete the following information):
using Pkg; Pkg.status()
(@temp) pkg> st Status `~/.julia/environments/temp/Project.toml` ⌃ [731186ca] RecursiveArrayTools v3.23.1
versioninfo()
julia> versioninfo() Julia Version 1.10.4 Commit 48d4fd48430 (2024-06-04 10:41 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: macOS (arm64-apple-darwin22.4.0) CPU: 11 × Apple M3 Pro WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1) Threads: 1 default, 0 interactive, 1 GC (on 5 virtual cores)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
duplicate of #196
Sorry, something went wrong.
No branches or pull requests
Describe the bug 🐞
Seems like
any
does not behave correctly forArrayPartition
Expected behavior
any(isnan, ArrayPartition([ NaN ], [ NaN ]))
should returntrue
, but currently returnsfalse
Minimal Reproducible Example 👇
Interestingly enough,
all
does behave correctlyEnvironment (please complete the following information):
using Pkg; Pkg.status()
versioninfo()
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: