... looks like a bug to me, but I'm not sure.

julia> VERSION
v"0.4.0-dev+2415"

julia> a=rand(1:12,3,3)
3x3 Array{Int64,2}:
  8   8  11
 11   5  11
 10  12   2

julia> a[5.≤a]
ERROR: `isless` has no method matching isless(::Array{Int64,2}, ::Float64)
Closest candidates are:
  isless(::Float64, ::Float64)
  isless(::FloatingPoint, ::FloatingPoint)
  isless(::Real, ::FloatingPoint)
  ...

 in <= at operators.jl:34

julia> a[5.<=a]
8-element Array{Int64,1}:
  8
 11
 10
  8
  5
 12
 11
 11

Reply via email to