Tag Archive for 'learn julia'

How can I create an empty array?

q> How can I create a size zero array in Julia? There are numerous methods of constructing an empty array in Julia: julia> fill(0,0) 0-element Array{Int64,1} julia> [] 0-element Array{Any,1} julia> ones(0) 0-element Array{Float64,1} julia> zeros(0) 0-element Array{Float64,1} julia> fill(0.,0) 0-element Array{Float64,1}