size of a specific dimension of a numpy array
I would like to know a simple way to know the size of a given dimension of a numpy array. Example A = numpy.zeros((10,20,30),float) The size of the second dimension of the array A is 20. Thanks. -- View this message in context: http://old.nabble.com/size-of-a-specific-dimension-of-a-numpy-array-tp279330... Sent from the Numpy-discussion mailing list archive at Nabble.com.
Hi, A.shape[1] 2010/3/17 gerardo.berbeglia <gberbeglia@gmail.com>:
I would like to know a simple way to know the size of a given dimension of a numpy array.
Example A = numpy.zeros((10,20,30),float) The size of the second dimension of the array A is 20.
Thanks.
-- View this message in context: http://old.nabble.com/size-of-a-specific-dimension-of-a-numpy-array-tp279330... Sent from the Numpy-discussion mailing list archive at Nabble.com.
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher
participants (2)
-
gerardo.berbeglia
-
Matthieu Brucher