We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55941b5 commit 8cb8b6fCopy full SHA for 8cb8b6f
src/systems/diffeqs/sdesystem.jl
@@ -343,7 +343,7 @@ function Girsanov_transform(sys::SDESystem, u; θ0 = 1.0)
343
grad = Symbolics.gradient(u, states(sys))
344
345
noiseeqs = get_noiseeqs(sys)
346
- if typeof(noiseeqs) <: Vector
+ if noiseeqs isa Vector
347
d = simplify.(-(noiseeqs .* grad) / u)
348
drift_correction = noiseeqs .* d
349
else
@@ -366,7 +366,7 @@ function Girsanov_transform(sys::SDESystem, u; θ0 = 1.0)
366
367
noiseqsθ = θ * d
368
369
370
m = size(noiseeqs)
371
if m == 1
372
push!(noiseeqs, noiseqsθ)
0 commit comments