Description Usage Arguments Value Benchmarking Author(s) See Also

View source: R/rowLogSumExps.R

Accurately computes the logarithm of the sum of exponentials across rows or columns.

1 2 | ```
rowLogSumExps(lx, na.rm=FALSE, ...)
colLogSumExps(lx, na.rm=FALSE, ...)
``` |

`lx` |
A |

`na.rm` |
If |

`...` |
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`

().

matrixStats documentation built on May 31, 2017, 2:26 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.