Closed
Description
logaddexp(x, y)
computes (x.exp() + y.exp()).log()
more stably than doing those operations naively, and is particularly useful when doing floating point computations in log-space for better precision / stability.
Num-traits seems like the right place for this implementation, which is why I'm opening an issue., but it also seems like most things are just forwarded, so maybe it was decided here to only provide functionality that could be be forwarded, even if things like abs_sub
aren't in std.
I'm happy to submit a PR, but wanted to verify that this was desired / in scope before putting more work into it.
Metadata
Metadata
Assignees
Labels
No labels