View source: R/rowLogSumExps.R
rowLogSumExps | R Documentation |
Accurately computes the logarithm of the sum of exponentials across rows or columns.
rowLogSumExps(lx, rows = NULL, cols = NULL, na.rm = FALSE,
dim. = dim(lx), ..., useNames = TRUE)
colLogSumExps(lx, rows = NULL, cols = NULL, na.rm = FALSE,
dim. = dim(lx), ..., useNames = TRUE)
lx |
A |
rows , cols |
A |
na.rm |
If |
dim. |
An |
... |
Not used. |
useNames |
If |
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
().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.