You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this doesn't seem to affect the default noise process for complex-valued SDEs in StochasticDiffEq. I'm just not able to manually instantiate a noise process that reproduces the default behavior:
julia>using StochasticDiffEq
julia>f!(du, u, p, t) = (du .=0)
f! (generic function with 1 method)
julia>g!(du, u, p, t) = (du .=1)
g! (generic function with 1 method)
julia> prob =SDEProblem(f!, g!, [0.0im], (0.0, 1.0));
julia> sol =solve(prob, EM(); dt=0.1);
julia> sol.u[end]
1-element Vector{ComplexF64}:-0.9054409033854848-0.4148766416920265im
The text was updated successfully, but these errors were encountered:
Looks like WienerProcess without the bang will eventually hit the following method, which fails to make use of the eltype T in the call to randn. That explains it.
WienerProcess(0.0, [0.0im])
only produces real-valued increments. MWE:The scalar-valued equivalent produces complex noise as expected:
Note that this doesn't seem to affect the default noise process for complex-valued SDEs in StochasticDiffEq. I'm just not able to manually instantiate a noise process that reproduces the default behavior:
The text was updated successfully, but these errors were encountered: