Next: , Previous: , Up: Internal Routines   [Contents][Index]

15.5.398 num_elem

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.

See also: num_dim, dimen, symclass, symdtype