powered by
Numerically more stable way to calculate log sum exp
logsumexp(M)
matrix; m by n input matrix, sum with be over the rows
matrix; m by 1 matrix