| Crates.io | logsumexp |
| lib.rs | logsumexp |
| version | 0.1.0 |
| created_at | 2023-07-25 01:42:13.138145+00 |
| updated_at | 2023-07-25 01:42:13.138145+00 |
| description | Numerically stable computation of log-sum-exp using a 1-pass algorithm |
| homepage | |
| repository | https://github.com/andrewjradcliffe/logsumexp/ |
| max_upload_size | |
| id | 925086 |
| size | 34,795 |
Provides two traits:
LogAddExp, which provides a numerically stable evaluation of
ln(exp(a) + exp(b)), utilizing ln_1p_exp from the lnexp
crate. Implementations are provided for for f64 and f32 (and
their respective references).LogSumExp, which provides a numerically stable, 1-pass (online) algorithm
for evaluation of
LogSumExp with correct
handling of +/- infinity and nan. Implementations are provided
iterators which produce Items of f64 or f32 (and for
respective references).Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.