MATLAB numpy.array numpy.matrix Notes ndims(a) ndim(a) or a.ndim get the number of dimensions of a (tens ...
wiki.scipy.org