Skip to content

Commit f9ab2ef

Browse files
committed
removed: useless indexing
1 parent 21b1c27 commit f9ab2ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/estimator/mhe/execute.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ function getŴ!(Ŵ, estim::MovingHorizonEstimator, transcription::Transcriptio
474474
He, nx̂, nŵ = estim.He, estim.nx̂, estim.nx̂
475475
nk = get_nk(estim.model, transcription)
476476
nZ̃ = estim.nε + get_nZ_mhe(transcription, He, nx̂, nk, nŵ)
477-
Ŵ[1:nŵ*He] .= @views Z̃[(nZ̃ - nŵ*He + 1):end]
477+
Ŵ .= @views Z̃[(nZ̃ - nŵ*He + 1):end]
478478
return Ŵ
479479
end
480480

0 commit comments

Comments
 (0)