Skip to content

Commit

Permalink
Fix the idxs error
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Jun 9, 2024
1 parent b66ad29 commit b6913f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/solution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ function (interp::ODEFilterPosterior)(
p,
continuity,
) where {deriv}
d = interp.cache.d
q = interp.cache.q
dv = deriv.parameters[1]
proj = if deriv == Val{0}
Expand All @@ -301,8 +302,11 @@ function (interp::ODEFilterPosterior)(
t, interp.ts, interp.x_filt, interp.x_smooth, interp.diffusions, interp.cache;
smoothed=interp.smooth)
u = proj * x
@assert length(u) == length(idxs)
return Gaussian(u.μ, u.Σ)
P = zeros(Bool, length(idxs), d)
for (i, idx) in enumerate(idxs)
P[i, idx] = 1
end
return P * u
end
function (interp::ODEFilterPosterior)(
t::AbstractVector{<:Real},
Expand Down

0 comments on commit b6913f0

Please sign in to comment.