-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write logsumexp in a more generic form (#45)
This uses Julia's reduction functionality to improve the `logsumexp` functionality. It no longer relies on 1-based indexing, is fast on CuArrays, and there is now a generic fallback for iterable collections. I've also renamed the 2-arg `logsumexp` to `logaddexp`, since Julia convention is to use different functions for reductions and reducers (e.g. `max` vs `maximum`).
- Loading branch information
1 parent
e66dd97
commit ae40bc1
Showing
3 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters