Array
Array(dims)
Array{T}(dims)
constructs an uninitialized dense array with element type T
. dims
may be a tuple or a series of integer arguments. The syntax Array(T, dims)
is also available, but deprecated.
Examples
julia> foo = Array(Int32, 2)
2-element Array{Int32,1}:
79270016
0
julia> bar = Array(String, (2,2)) # equivalent to Array(String, 2, 2)
2x2 Array{String,2}:
#undef #undef
#undef #undef
See Also
Array, broadcast, cat, combinations, conj!, digits!, fieldnames, fill, fill!, last, length, maximum, minimum, ones, parent, parentindexes, partitions, permutations, pointer, pointer_to_array, promote_shape, rand!, reshape, scale, similar, sum, sum_kbn, takebuf_array, transpose!, vec, zeros,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.