Julia is confused here because it indeed doesn’t make sense to ask whether an array is smaller than a number. You want to do this element wise, easiest using broadcasting: eMs .< 0 (the dot meaning element wise, just like in Matlab’s .^).
3 Likes