Great! Thanks, René, for your quick response!

Best,

Charles

On Tue, Mar 3, 2015 at 4:13 PM, René Donner <[email protected]> wrote:

> You can use this:
>
> julia> Array(Int64,0,0)
> 0x0 Array{Int64,2}
>
>
>
> Am 03.03.2015 um 16:09 schrieb Charles Novaes de Santana <
> [email protected]>:
>
> > Dear all,
> >
> > Sorry if this question is too silly. But I would like to know how to
> create an empty 2-dimensional Array of Int64 with Julia.
> >
> > To create a empty Array{Int64,1} I can use this:
> >
> > a = Int64[]
> > length(a)
> > 0
> >
> > To create an empty 2-dimensional Array of Int64 I tried this:
> > a = Array{Int64,2}
> >
> > But it doesn't allow me to ask for the size of the array using length(a)
> > julia> length(a)
> > ERROR: MethodError: `length` has no method matching
> length(::Type{Array{Int64,2}})
> >
> > Any help would be much appreciated!
> >
> > Best
> >
> > Charles
> >
> >
> > --
> > Um axé! :)
> >
> > --
> > Charles Novaes de Santana, PhD
> > http://www.imedea.uib-csic.es/~charles
>
>


-- 
Um axé! :)

--
Charles Novaes de Santana, PhD
http://www.imedea.uib-csic.es/~charles

Reply via email to