Array{Float64}[] creates an instance of type Vector{Array{Float64}}.
You need the type, probably Vector{Vector{Float64}}.


On Mon, 2016-07-18 at 17:13, Ferran Mazzanti <[email protected]> wrote:
> Guys,
>
> today I've tried to include a vector of vectors as part of atype
> definition, something like
>
> type caw
>    legs :: Int64
>    spots :: Array{Float64}[]
> end
>
> but that fails. Shall I understand that it is not possible to define that
> in a type definition? I just wanted to include a structrure that could grow
> by adding more data dynamically...
>
> Any hint about this?
>
> Thanks for your kind help,
>
> Ferran.

Reply via email to