nnumpy matrix count non negative values

38

import numpy as np

np.sum(np.array(x) >= 0, axis=0)

Comments

Submit
0 Comments