def colwisesumLogFactorial_allpairs(Nmat):
  '''
  '''
  K = Nmat.shape[1]
  logFactMat = np.zeros((K,K))
  for jj in xrange(1-K):
    curNmat = Nmat[:,jj][:,np.newaxis] + Nmat[:, jj+1:]
    logFactMat[jj,jj+1:] = colwisesumLogFactorial(curNmat)
  return logFactMat
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/util/NumericHardUtil.py/colwisesumLogFactorial_allpairs/swapped operands of `-`