nnumpy matrix count non negative values

48

import numpy as np

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

Comments

Submit
0 Comments