From 8777daeca9bfd3b3cb06ccdb6e50e8144f85c580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Designolle?= Date: Fri, 3 Jan 2025 15:55:35 +0100 Subject: [PATCH] Add @views for by in multipartite correlation --- src/nonlocal.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nonlocal.jl b/src/nonlocal.jl index 284dd81..99e7202 100644 --- a/src/nonlocal.jl +++ b/src/nonlocal.jl @@ -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)