4.7.14.1.14. 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.