Do you mean all elements not equal to zero?

julia> A = rand(-2:2,1,10)
1x10 Array{Int64,2}:
 -1  0  1  0  -1  0  1  1  -2  -2

julia> A .!= 0
1x10 BitArray{2}:
 true  false  true  false  true  false  true  true  true  true


On Monday, August 17, 2015 at 1:57:23 PM UTC-4, Ratan Sur wrote:
>
> Is there a built in way to perform elementwise not on an array of integers?
>

Reply via email to