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

### Description

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

### Usage

1 2 |

### Arguments

`lx` |
A |

`rows, cols` |
A |

`na.rm` |
If |

`dim.` |
An |

`...` |
Not used. |

### Value

A `numeric`

`vector`

of length N (K).

### Benchmarking

These methods are implemented in native code and have been optimized for speed and memory.

### Author(s)

Native implementation by Henrik Bengtsson. Original R code by Nakayama ??? (Japan).

### See Also

To calculate the same on vectors, `logSumExp`

().

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.