7.18.1.1.10. statsmodels.tools.tools.recipr0

statsmodels.tools.tools.recipr0(X)[source]

Return the reciprocal of an array, setting all entries equal to 0 as 0. It does not assume that X should be positive in general.