[julia-users] Convert Array{Array{Float64}, 1} to Array{Float64, 2}
hcat(a...) will return the matrix form of a. Is that what you want?
Re: [julia-users] Convert Array{Array{Float64}, 1} to Array{Float64, 2}
You can, but probably not without memory allocation since your Array of Array’s isn’t a continguous block of memory. — John On May 25, 2014, at 10:36 AM, Freddy Chua wrote: > For example > > a = Array(Array, 0) > > push!(a, [1, 2]) > push!(a, [3, 4]) > > Gives me an array of array. Can I g
[julia-users] Convert Array{Array{Float64}, 1} to Array{Float64, 2}
For example a = Array(Array, 0) push!(a, [1, 2]) push!(a, [3, 4]) Gives me an array of array. Can I get a matrix easily in this way?