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
init
logsumexp
It would be great to have a init keyword similar to sum for empty collections.
sum
I would basically expect
logsumexp(Float64[]) == -Inf
It just makes it slightly complicated to make it type stable so I am not sure how to go about this.
The text was updated successfully, but these errors were encountered:
Ok my bad, this example already works.... I probably have a type issue somewhere.
Sorry, something went wrong.
For context, this is my issue:
d = Dict(rand(3) .=> rand(3)) [x for (k, x) in pairs(d) if k > 1] # This is type stable logsumexp(x for (k,x) in pairs(d) if k > 1) # This errors
No branches or pull requests
It would be great to have a
init
keyword similar tosum
for empty collections.I would basically expect
It just makes it slightly complicated to make it type stable so I am not sure how to go about this.
The text was updated successfully, but these errors were encountered: