4.7.14.1.10. statsmodels.tools.tools.nan_dot

statsmodels.tools.tools.nan_dot(A, B)[source]

Returns np.dot(left_matrix, right_matrix) with the convention that nan * 0 = 0 and nan * x = nan if x != 0.

Parameters:A, B : np.ndarrays