Re: [julia-users] vector of vectors to array

2016-07-02 Thread Fengyang Wang
Hi Ferran, Just a quick note that any solution (including Mauro's) *must* make a copy—as the original vectors are not contiguous in memory, they have to be copied to form an array.

Re: [julia-users] vector of vectors to array

2016-06-28 Thread Ferran Mazzanti
Hi Mauro, no, that's *exactly* what I was looking for... thanks a lot :) Best regards, Ferran. On Tuesday, June 28, 2016 at 10:37:46 AM UTC+2, Mauro wrote: > > > julia> Vector[rand(3), rand(3), rand(3)] > 3-element Array{Array{T,1},1}: >

Re: [julia-users] vector of vectors to array

2016-06-28 Thread Mauro
julia> Vector[rand(3), rand(3), rand(3)] 3-element Array{Array{T,1},1}: [0.08082297930289717,0.4831571293164978,0.7227686419871842] [0.7376841239302636,0.6150435898281146,0.1474762464521686] [0.9699744293150396,0.19770809574045556,0.638619038137211] julia> hcat(ans...) 3x3 Array{Float64,2}:

[julia-users] vector of vectors to array

2016-06-28 Thread Ferran Mazzanti
Hi, probably simple question but can't find the answer. I have a vector of vectors like this one chi2_mods 3-element Array{Array{Float64,1},1}: [7245.87,7242.98,7240.08,7237.18,7234.28,7231.39,7228.49,7225.59,7222.7,7219.81 …