ndim

Description

Returns an integer indicating how many dimensions of a multi-dimensional array the memory represents.

Syntax

memoryview. ndim

Return Value

None

Time Complexity

#TODO

Example

>>> m = memoryview('foo')
>>> m.ndim
1L

See Also

#TODO