Answers for "numpy check if an array is all zero"

0

numpy check if an array is all zero

>>> all_zeros = not np.any(a)
Posted by: Guest on June-06-2021

Browse Popular Code Answers by Language