http://docs.julialang.org/en/latest/stdlib/arrays/#Base.find
On Monday, August 17, 2015 at 2:31:11 PM UTC-4, Ratan Sur wrote:
>
> That is what I meant, I was hoping there was a less verbose way to do it.
> So I would need to do:
> c = a.!=0 & b.!=0
>
> Instead of something like
> c = !a & !b
>
>
> On Monday, August 17, 2015 at 2:11:18 PM UTC-4, Matt Bauman wrote:
>>
>> 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?
>>>
>>