def _covar_mstep_spherical(*args):
 cv = _covar_mstep_diag(*args)
 return np.tile(cv.mean(axis=1)[:, np.newaxis], (1, cv.shape[1]))

def _covar_mstep_spherical ( * args ) : cv = _covar_mstep_diag ( * args ) return np . tile ( cv . mean ( axis = 1 ) [ : , np . newaxis ] , ( 1 , cv . shape [ 1 ] ) )
perform the covariance m step for spherical cases .