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
functionalg_cache(alg::BAOAB,prob,u,ΔW,ΔZ,p,rate_prototype,noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{false}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
24
26
k =zero(rate_prototype.x[1])
25
-
iftypeof(alg.gamma) <:Number
26
-
c1 =exp.(-alg.gamma*dt)
27
-
c2 =sqrt.(1.- alg.scale_noise*c1.^2)# if scale_noise == false, c2 = 1
@@ -36,18 +35,18 @@ function alg_cache(alg::BAOAB,prob,u,ΔW,ΔZ,p,rate_prototype,noise_rate_prototy
36
35
end
37
36
38
37
functionalg_cache(alg::BAOAB,prob,u,ΔW,ΔZ,p,rate_prototype,noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
38
+
dumid =zero(u.x[1])
39
39
dutmp =zero(u.x[1])
40
+
dunoise =zero(u.x[1])
40
41
utmp =zero(u.x[2])
41
42
k =zero(rate_prototype.x[1])
42
43
43
44
gtmp =zero(noise_rate_prototype)
44
45
noise =zero(rate_prototype.x[1])
45
46
46
47
half =uEltypeNoUnits(1//2)
47
-
iftypeof(alg.gamma) <:Number
48
-
c1 =exp.(-alg.gamma*dt)
49
-
c2 =sqrt.(1.- alg.scale_noise*c1.^2)# if scale_noise == false, c2 = 1
functionalg_cache(alg::ABOBA,prob,u,ΔW,ΔZ,p,rate_prototype,noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{false}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
functionalg_cache(alg::ABOBA,prob,u,ΔW,ΔZ,p,rate_prototype, noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
101
99
dutmp =zero(u.x[1])
100
+
dumid =zero(u.x[1])
101
+
dunoise =zero(u.x[1])
102
102
utmp =zero(u.x[2])
103
103
k =zero(rate_prototype.x[1])
104
104
@@ -107,10 +107,7 @@ function alg_cache(alg::ABOBA,prob,u,ΔW,ΔZ,p,rate_prototype, noise_rate_protot
functionalg_cache(alg::OBABO,prob,u,ΔW,ΔZ,p,rate_prototype,noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{false}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
functionalg_cache(alg::OBABO,prob,u,ΔW,ΔZ,p,rate_prototype, noise_rate_prototype,jump_rate_prototype,::Type{uEltypeNoUnits},::Type{uBottomEltypeNoUnits},::Type{tTypeNoUnits},uprev,f,t,dt,::Type{Val{true}}) where {uEltypeNoUnits,uBottomEltypeNoUnits,tTypeNoUnits}
0 commit comments