[Numpy-discussion] vectorized version of logsumexp? (from scipy.maxentropy)

Neal Becker ndbecker2 at gmail.com
Sat Oct 17 14:40:16 EDT 2009


Somewhat offtopic, but is there a generalization of the logsumexp shortcut 
to more than 2 variables?

IIRC, it's this for 2 variables:
log (exp (a) + exp (b)) = max (a,b) + log (1 + exp (-abs (a-b)))




More information about the NumPy-Discussion mailing list