julia lang - pushing elements to an array of matrices -
suppose want have array of matrices , iterate in for-loop , add in every loop matrix array, afaik in julia:
v = array{array{float64,2},1} i=1:nlevels img = imgread("/path/img.png") push!(v, img) # append!(img) doesn't work end methoderror: no method matching append!(::type{array{array{float64,2},1}}, ::array{float64,2}) closest candidates are: append!(!matched::array{t,1}, ::any) @ collections.jl:21 append!(!matched::catindices.bidirectionalvector{t}, ::any) @ ...
i error!
what doing wrong here! how there right way achieve in julia?
a ()
missed!
have look
julia> v = array{array{float64,2},1} array{array{float64,2},1} julia> typeof(v) datatype julia> v = array{array{float64,2},1}() 0-element array{array{float64,2},1} julia> typeof(v) array{array{float64,2},1}
Comments
Post a Comment