[SciPy-user] finding number of elements in a vector
Mon Aug 20 08:39:14 CDT 2007
Perez Kawumi wrote:
> say i have a vector [3,5,0,9,0,8,9]
> is there any method in python i can use to find out how many non-zero
> vector elements are in this list?
from numpy import array
x = array([3,5,0,9,0,8,9])
Random number generation is the art of producing pure gibberish as
quickly as possible.
More information about the SciPy-user