Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python - avoid division by zero in numpy.where()

out = a.copy()
out[mask] /= b[mask]
Source by pythonhowto.org #
 
PREVIOUS NEXT
Tagged: #python #avoid #division
ADD COMMENT
Topic
Name
1+5 =