Subject: ?Numpy: number of elements in an array?

Norman Shelley nospam at newsranger.com
Thu Jun 21 14:44:13 EDT 2001


In Numpy how does one get the number of elements in an array?

This seems to do it
reduce(mul, a.shape, 1)

but shouldn't there be a straight forward, function/method to do it?




Norman Shelley
rrdn60 at email.sps.mot.com



More information about the Python-list mailing list