Prevents underflow/overflow using the log-sum-exp trick
A matrix of numerical values
The dimension along which the long sum is taken (1 for row, 2 for column)
Returns log(sum(exp(x),dimen)), the log sum of exps, summing over dimension dimen but in a way that tries to avoid underflow/overflow.
Gerald Quon and Catalina Anghel
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.