powered by
Uses the log-sum-exp trick.
log_normalize(lp)
Murphy KP (2012). Machine learning: a probabilistic perspective. The MIT Press. pp. 86-87.