zeros(A)
zeros(A)
Create an array of all zeros with the same element type and shape as A
.
Examples
julia> zeros(Char,(1,1))
1x1 Array{Char,2}:
'\0'
julia> foo = [1,2];
julia> zeros(foo)
2-element Array{Int64,1}:
0
0
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.