Skip to content

Commit 7582269

Browse files
authored
Fix findminmax in the presence of NaN. (#617)
1 parent a272442 commit 7582269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host/indexing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function findminmax(binop, A::AnyGPUArray; init, dims)
228228
(x, i), (y, j) = t1, t2
229229

230230
binop(x, y) && return t2
231-
x == y && return (x, min(i, j))
231+
isequal(x, y) && return (x, min(i, j))
232232
return t1
233233
end
234234

0 commit comments

Comments
 (0)