You could do also try this, which does not introduce any overhead:
reinterpret(Int, tuple_array, (3, 1000))
But it only works with Julia 0.4 and I'm not sure if you would consider it 
as "clean".

Am Montag, 6. Juli 2015 16:10:01 UTC-4 schrieb Júlio Hoffimann:
>
> Hi,
>
> How to convert:
>
> 1000-element Array{Tuple{Integer,Integer,Integer},1}:
>  (10,2,1) 
>  (5,7,10) 
>  (5,7,4)  
>  (1,1,6)  
>  (2,3,6)  
>  (8,6,4)  
>  (10,2,4) 
>  (1,3,9)  
>  (9,3,7)  
>  (5,2,4)  
>  ⋮        
>  (1,6,8)  
>  (4,6,6)  
>  (3,9,5)  
>  (10,4,10)
>  (8,7,4)  
>  (4,8,9)  
>  (2,6,10) 
>  (3,6,5)  
>  (1,7,10) 
>
> into the corresponding 1000x3 matrix in a "clean fashion"?
>
> -Júlio
>

Reply via email to