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
I found an undesirable allocation when drawing from a MvNormal(I(n)) which boils down to broadcasting with FillArrays:
MvNormal(I(n))
julia> u = rand(2); v = Zeros(2); w = collect(v); julia> f(u, v) = ( u .+= v) f (generic function with 1 method) julia> @btime f($u, $v) 47.824 ns (1 allocation: 80 bytes) 2-element Vector{Float64}: 0.17323378731244632 0.4293927595304291 julia> @btime f($u, $w) 5.292 ns (0 allocations: 0 bytes) 2-element Vector{Float64}: 0.17323378731244632 0.4293927595304291
Might be somewhat related to #188 and #58
The text was updated successfully, but these errors were encountered:
This isn't related to those issues, it's simply a badly implemented broadcasted method that materializes the result. Should be an easy fix.
broadcasted
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I found an undesirable allocation when drawing from a
MvNormal(I(n))
which boils down to broadcasting with FillArrays:Might be somewhat related to #188 and #58
The text was updated successfully, but these errors were encountered: