There was an error while loading. Please reload this page.
1 parent 446becd commit ff48249Copy full SHA for ff48249
1 file changed
src/types.jl
@@ -622,9 +622,9 @@ function load_active_set(
622
lmo = BellProbabilitiesLMO(p, deflate(p))
623
atoms = BellProbabilitiesDS{T2, 2N}[]
624
@inbounds for i in 1:length(ass.weights)
625
- ax = [ones(Int, m[n]) for n in 1:N]
+ ax = [Vector{Int}(undef, m[n]) for n in 1:N]
626
for n in 1:N
627
- ax[n] .= Int.(ass.ax[n][i, :])
+ ax[n] .= @view(ass.ax[n][i, :])
628
end
629
atom = BellProbabilitiesDS(ax, lmo)
630
push!(atoms, atom)
0 commit comments