Skip to content

Commit

Permalink
Make make_transition_matrices! allocate less again
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Oct 11, 2023
1 parent 51b6b02 commit c42f9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/priors/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function make_transition_matrices!(cache, prior::AbstractODEFilterPrior, dt)
_Ah, _Qh = discretize(cache.prior, dt)
copy!(Ah, _Ah)
copy!(Qh, _Qh)
A .= P * Ah * PI
@warn "`make_transition_matrices!` currently allocates more than it should!"
# A = P * Ah * PI
_matmul!(A, P, _matmul!(A, Ah, PI))
fast_X_A_Xt!(Q, Qh, P)
end

Expand Down

0 comments on commit c42f9f3

Please sign in to comment.