Skip to content

Commit ccee90c

Browse files
committed
Remove Ref workaround for rng broadcasting
1 parent 819f1eb commit ccee90c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parameters.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ end
1313

1414
function initialize(rs::AbstractVector, tuning::AbstractParticleSwarm)
1515
n = tuning.n_particles
16-
# Wrap rng in Ref for compatibility with Julia <= 1.3
17-
ranges, parameters, lens, Xᵢ = zip(_initialize.(Ref(tuning.rng), rs, n)...)
16+
ranges, parameters, lens, Xᵢ = zip(_initialize.(tuning.rng, rs, n)...)
1817
indices = _to_indices(lens)
1918
X = hcat(Xᵢ...)
2019
V = zero(X)

0 commit comments

Comments
 (0)