Table of Contents
numpy.doc
numpy.lib
numpy.random
numpy.linalg
numpy.fft
numpy.polynomial
numpy.testing
numpy.f2py
numpy.distutils
numpy.
alen
Return the length of the first dimension of the input array.
a : array_like
Input array.
alen : int
Length of the first dimension of a.
See also
shape, size
shape
size
Examples
>>> a = np.zeros((7,4,5)) >>> a.shape[0] 7 >>> np.alen(a) 7