MethodError: no method matching Array{Float64,1}(::Array{Float64,2})

Just guessing, but maybe you did something like

julia> [1 2 3]
1×3 Array{Int64,2}:
 1  2  3

instead of

julia> [1, 2, 3]
3-element Array{Int64,1}:
 1
 2
 3

?

1 Like