Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

nnumpy matrix count non negative values

import numpy as np

np.sum(np.array(x) >= 0, axis=0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nnumpy #matrix #count #negative #values
ADD COMMENT
Topic
Name
3+1 =