Skip to content

Commit

Permalink
slight efficiency tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Mar 19, 2024
1 parent 2beeab5 commit df55dab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/simulate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ function simulate!(

if length(β) length(coef(m))
padding = length(coef(m)) - length(β)
for ii in 1:padding
push!(β, -0.0)
end
append!(β, fill(-0.0, padding))
end

# initialize y to standard normal
Expand Down Expand Up @@ -256,9 +254,7 @@ function _simulate!(

if length(β) length(coef(m))
padding = length(coef(m)) - length(β)
for ii in 1:padding
push!(β, -0.0)
end
append!(β, fill(-0.0, padding))
end

fast = (length(m.θ) == length(m.optsum.final))
Expand Down

0 comments on commit df55dab

Please sign in to comment.