Next: nut00a, Previous: num_dim, Up: Internal Routines [Contents][Index]
num_elem(x [, dims])
If dims
is specified, and if x
is an array or
file array, then this function returns the product of the sizes of the
dimensions indicated in dims
. Otherwise, this function
returns the number of elements that are in x
. This
function supports arrays, file maps, strings, scalars, compact lists,
and lists.