Skip to content

Update log_sum_exp#400

Merged
paul-buerkner merged 2 commits into
stan-dev:masterfrom
TeemuSailynoja:update-log_sum_exp
Mar 28, 2025
Merged

Update log_sum_exp#400
paul-buerkner merged 2 commits into
stan-dev:masterfrom
TeemuSailynoja:update-log_sum_exp

Conversation

@TeemuSailynoja
Copy link
Copy Markdown
Contributor

Summary

Add behaviour to the function in the corner cases of infinite values or empty input.
Fixes #399

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

Add behaviour to the function in the corner cases of infinite values or empty input.
@paul-buerkner
Copy link
Copy Markdown
Collaborator

Thanks! Would you mind adding some tests that ensure that all the cases of confusing behavior you saw previously are now fixed?

@paul-buerkner
Copy link
Copy Markdown
Collaborator

Thank you!

@paul-buerkner paul-buerkner merged commit 4b7e0bd into stan-dev:master Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Corner cases of log_sum_exp

2 participants