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
This function allocates large numbers of gc roots:
function laplace2 (del_x::Array{Float64, 3}, x::Array{Float64, 3}) n1, n2, n3 = size (x) for i1 = 1:n1, i2 = 1:n2, i3 = 1:n3 del_x[i1,i2,i3] = x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] end end
while this function does not:
function laplace2 (del_x::Array{Float64, 3}, x::Array{Float64, 3}) n1, n2, n3 = size (x) for i1 = 1:n1, i2 = 1:n2, i3 = 1:n3 del_x[i1,i2,i3] = x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] + x[i1,i2,i3] end end
The text was updated successfully, but these errors were encountered:
Maybe it's because the first one calls the varargs + method, while the second one not?
+
Sorry, something went wrong.
3238401
JeffBezanson
No branches or pull requests
This function allocates large numbers of gc roots:
while this function does not:
The text was updated successfully, but these errors were encountered: