You mean as a literal?
Any[[1,2], [4,5,6]]
will give you:
2-element Array{Any,1}:
[1,2]
[4,5,6]
Or when you want to create that array of array programmatically:
julia> [ones(2) for i in 1:2]
2-element Array{Array{Float64,1},1}:
[1.0,1.0]
[1.0,1.0]
Am Mittwoch, 18. März 2015 11:42:44 UTC+1 schrieb Sisyphuss:
>
> I'd like to know how to create an array of array...
>
>
> On Wednesday, March 18, 2015 at 2:03:48 AM UTC+1, Andreas Noack wrote:
>>
>> new_array = vcat(data...)
>>
>> 2015-03-17 20:59 GMT-04:00 Christopher Fisher <[email protected]>:
>>
>>>
>>>
>>> Hi all-
>>>
>>> pmap outputs the results as an array of arrays and I am trying to find a
>>> flexible way to change it into a one dimensional array. I can hardcode the
>>> results as new_array = vcat(data[1],data[2],data[3],data[4]). Is there an
>>> easy way to accomplish this without hardcoding each data[] into vcat?
>>>
>>> Thank you in advance
>>>
>>
>>