Hi I am wondering why findall
function doesnt seem to work at times.
Here is an example
m = rand(9) |> x -> reshape(x, (3,3))
#3×3 Matrix{Float64}:
# 0.560603 0.415519 0.901541
# 0.978412 0.807979 0.945599
# 0.544259 0.645748 0.16898
findall(x -> x == 0.560603, m)
# CartesianIndex{2}[]
However when I do this, it seems to work
m2 = Matrix([1.6549 18.85849 90.8493 ; 2.339490 6.83490 8.1392])
findall(x -> x == 8.1392, m2)
#1-element Vector{CartesianIndex{2}}:
#CartesianIndex(2, 3)
Any idea's why?