Accurately computes the logarithm of the sum of exponentials across rows or columns.
1 2 |
lx |
A |
rows, cols |
A |
na.rm |
If |
dim. |
An |
... |
Not used. |
A numeric
vector
of length N (K).
These methods are implemented in native code and have been optimized for speed and memory.
Native implementation by Henrik Bengtsson. Original R code by Nakayama ??? (Japan).
To calculate the same on vectors, logSumExp
().
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.