We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logsumexp(f, x)
logsumexp!(f, out, x)
How about having a version that takes a function to avoid allocation when doing logsumexp(f.(x)) ? Would you be open to a PR?
logsumexp(f.(x))
The text was updated successfully, but these errors were encountered:
Would it be just
logsumexp(f, x) = logsumexp(f(xi) for xi in x)
? Or maybe
logsumexp(f, x; dims=:) = logsumexp(Broadcast.instantiate(Broadcast.broadcasted(f, x)); dims=dims)
::AbstractArray
::Base.AbstractArrayOrBroadcasted
In any case, I think it could be convenient even though at least the first alternative already works. So I guess a PR would be great 🙂
Sorry, something went wrong.
No branches or pull requests
How about having a version that takes a function to avoid allocation when doing
logsumexp(f.(x))
?Would you be open to a PR?
The text was updated successfully, but these errors were encountered: