Skip to content

Commit ff48249

Browse files
Minor in load_active_set for Multi
1 parent 446becd commit ff48249

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,9 @@ function load_active_set(
622622
lmo = BellProbabilitiesLMO(p, deflate(p))
623623
atoms = BellProbabilitiesDS{T2, 2N}[]
624624
@inbounds for i in 1:length(ass.weights)
625-
ax = [ones(Int, m[n]) for n in 1:N]
625+
ax = [Vector{Int}(undef, m[n]) for n in 1:N]
626626
for n in 1:N
627-
ax[n] .= Int.(ass.ax[n][i, :])
627+
ax[n] .= @view(ass.ax[n][i, :])
628628
end
629629
atom = BellProbabilitiesDS(ax, lmo)
630630
push!(atoms, atom)

0 commit comments

Comments
 (0)