[julia-users] Re: Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Sujoy Datta
he 
Thank you, Tim and Scott. I am using version 0.4.5 and both of these 
methods are not working.Good to know in the latest version, this can be 
done.
Anyway, I just found that while adding, the bits becomes numbers, so, I did 
this (soo.bad trick,I think):
x=BitArray(falses(20,8))
y=x+false

By the way, how can I get the newest version? I downloaded this version 
through Synaptic.



On Monday, October 17, 2016 at 3:01:53 PM UTC+5:30, Sujoy Datta wrote:
>
>
>
> I am a new user of Julia. Please help me to convert a nxm BitArray to an 
> nxm IntegerArray.
> What I want is to print 1 for 'true' and 0 for 'false'.
> Thank you in advance.
>


[julia-users] Please help me to convert a BitArray to a Integer array in Julia

2016-10-17 Thread Sujoy Datta


I am a new user of Julia. Please help me to convert a nxm BitArray to an 
nxm IntegerArray.
What I want is to print 1 for 'true' and 0 for 'false'.
Thank you in advance.