#NEWLINE# def memo_factorial_term_for_merge( self , LP , mPairIDs ) : #NEWLINE# #INDENT# if ( mPairIDs is None ) : #NEWLINE# #INDENT# logFactZMerge = NumericHardUtil . colwisesumLogFactorial_allpairs ( LP [ 'hard_asgn' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logFactZMerge = NumericHardUtil . colwisesumLogFactorial_specificpairs ( LP [ 'hard_asgn' ] , mPairIDs ) #NEWLINE# #UNINDENT# return logFactZMerge