Thanks for all the suggestions! Since I'm still on 0.3.11, and only have to 
check a couple of fairly small arrays, I simply went with 

function checkmonotonicity(v::Array{Float64})
  counter = Array(Int64, ndims(v))
  
  for i = 1:ndims(v)
      counter[i] = sum(mapslices(issorted, v, i))
  end

  return counter
end

Reply via email to