Suppose f(k) returns a Array{Float64,1}, and I want to construct an 
Array{Float64,2} whose kth row is f(k).  What's the best way to do this? 
 Right now I'm using

     mapreduce(x->x,vcat,[f(k) for k = 1:n])

where the point of the mapreduce is to convert the Array{Any,1} to 
Array{Float64,2}.  But it seems like it should be simpler.


Reply via email to