Skip to content

Commit

Permalink
Add @views for by in multipartite correlation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiendesignolle committed Jan 3, 2025
1 parent f4e4a74 commit 8777dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nonlocal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function _local_bound_correlation_core(chunk, ins::NTuple{N,Int}, squareG::Array
@inbounds for _ chunk[1]:chunk[2]
tmp .= 0
for i 2:N
by[i-1][marg+1:ins[i]] .= 2 .* ind[sumsizes[i-1]:sumsizes[i]-1] .- 1
@views by[i-1][marg+1:ins[i]] .= 2 .* ind[sumsizes[i-1]:sumsizes[i]-1] .- 1
end
for y ins_region
b = prod(by[i][y[i]] for i 1:N-1)
Expand Down

0 comments on commit 8777dae

Please sign in to comment.