A log_add_exp function that returns containers
Open
@MichaScant is already working on this.
Since Nov 18, 2024.
feature
good first issue
new function
- Dominant language
- C++
- Stars
- 839
- Forks
- 220
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 14
Description
It would be nice to have a function that works like log_sum_exp but elementwise, so the return was also a container.
I have a similar issue with
log_sum_expwhere I wanted it tovector[n] a = log_sum_exp(vector[n] b, vector[n] c)across each element, however it doesn't do this type of elementwise sum. Maybe if we had alog_add_expwhich I've seen in other languages.
Originally posted by @spinkney in https://github.com/stan-dev/docs/issues/832#issuecomment-2478728469
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.