Arrays
Arrays
Basic functions
-
ndims(A::AbstractArray) → Integer
-
Returns the number of dimensions of
A
.julia> A = ones(3,4,5); julia> ndims(A) 3
-
size(A::AbstractArray[, dim...])
-
Returns a tuple containing the dimensions of
A
. Optionally you can specify the dimension(s) you want the length of, and get the length of that dimension, or a tuple of the lengths of dimensions you asked for.julia> A = ones(2,3,4); julia> size(A, 2) 3 julia> size(A,3,2) (4,3)
-
indices(A)
-
Returns the tuple of valid indices for array
A
.
-
indices(A, d)登录查看完整内容