On 12/22/2010 9:16 AM, Ian Stokes-Rees wrote: > a != 0 > > will be used, but I'm not sure then how to "count" the number of "True" > entries.
(a != 0).sum() hth, Alan Isaac _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion