@@ -123,12 +123,12 @@ function SDEProblem(f::AbstractSDEFunction,u0,tspan,p=NullParameters();kwargs...
123
123
end
124
124
=#
125
125
126
- function SDEProblem (f:: AbstractSDEFunction , g, u0, tspan, p = NullParameters (); kwargs... )
127
- SDEProblem {isinplace(f)} (f, g, u0, tspan, p; kwargs... )
126
+ function SDEProblem (f:: AbstractSDEFunction , u0, tspan, p = NullParameters (); kwargs... )
127
+ SDEProblem {isinplace(f)} (f, f . g, u0, tspan, p; kwargs... )
128
128
end
129
129
130
130
function SDEProblem (f, g, u0, tspan, p = NullParameters (); kwargs... )
131
- SDEProblem (SDEFunction (f, g), g, u0, tspan, p; kwargs... )
131
+ SDEProblem (SDEFunction (f, g), u0, tspan, p; kwargs... )
132
132
end
133
133
134
134
"""
@@ -141,18 +141,19 @@ $(TYPEDEF)
141
141
"""
142
142
struct SplitSDEProblem{iip} <: AbstractSplitSDEProblem end
143
143
# u' = Au + f
144
+ #=
144
145
function SplitSDEProblem(f1, f2, g, u0, tspan, p = NullParameters(); kwargs...)
145
146
SplitSDEProblem(SplitSDEFunction(f1, f2, g), g, u0, tspan, p; kwargs...)
146
147
end
147
-
148
- function SplitSDEProblem (f :: SplitSDEFunction , g, u0, tspan, p = NullParameters (); kwargs... )
149
- SplitSDEProblem {isinplace(f)} (f, g , u0, tspan, p; kwargs... )
148
+ =#
149
+ function SplitSDEProblem (f1, f2 , g, u0, tspan, p = NullParameters (); kwargs... )
150
+ SplitSDEProblem ( SplitSDEFunction (f1, f2, g) , u0, tspan, p; kwargs... )
150
151
end
151
152
152
- function SplitSDEProblem {iip} (f1, f2, g, u0, tspan, p = NullParameters ();
153
- kwargs... ) where {iip}
154
- SplitSDEProblem (SplitSDEFunction (f1, f2, g), g, u0, tspan, p; kwargs... )
153
+ function SplitSDEProblem (f:: SplitSDEFunction , u0, tspan, p = NullParameters (); kwargs... )
154
+ SplitSDEProblem {isinplace(f)} (f, f. g, u0, tspan, p; kwargs... )
155
155
end
156
+
156
157
function SplitSDEProblem {iip} (f:: SplitSDEFunction , g, u0, tspan, p = NullParameters ();
157
158
func_cache = nothing , kwargs... ) where {iip}
158
159
if f. cache === nothing && iip
@@ -162,7 +163,7 @@ function SplitSDEProblem{iip}(f::SplitSDEFunction, g, u0, tspan, p = NullParamet
162
163
else
163
164
_f = f
164
165
end
165
- SDEProblem (_f, g, u0, tspan, p; kwargs... )
166
+ SDEProblem (_f, u0, tspan, p; kwargs... )
166
167
end
167
168
168
169
"""
@@ -176,18 +177,14 @@ $(TYPEDEF)
176
177
struct DynamicalSDEProblem{iip} <: AbstractDynamicalSDEProblem end
177
178
178
179
function DynamicalSDEProblem (f1, f2, g, v0, u0, tspan, p = NullParameters (); kwargs... )
179
- DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), g, v0, u0, tspan, p; kwargs... )
180
+ DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), v0, u0, tspan, p; kwargs... )
180
181
end
181
182
182
- function DynamicalSDEProblem (f:: DynamicalSDEFunction , g, v0, u0, tspan,
183
+ function DynamicalSDEProblem (f:: DynamicalSDEFunction , v0, u0, tspan,
183
184
p = NullParameters (); kwargs... )
184
- DynamicalSDEProblem {isinplace(f)} (f, g, v0, u0, tspan, p; kwargs... )
185
+ DynamicalSDEProblem {isinplace(f)} (f, f . g, v0, u0, tspan, p; kwargs... )
185
186
end
186
187
187
- function DynamicalSDEProblem {iip} (f1, f2, g, v0, u0, tspan, p = NullParameters ();
188
- kwargs... ) where {iip}
189
- DynamicalSDEProblem (DynamicalSDEFunction (f1, f2, g), g, v0, u0, tspan, p; kwargs... )
190
- end
191
188
function DynamicalSDEProblem {iip} (f:: DynamicalSDEFunction , g, v0, u0, tspan,
192
189
p = NullParameters ();
193
190
func_cache = nothing , kwargs... ) where {iip}
@@ -198,5 +195,5 @@ function DynamicalSDEProblem{iip}(f::DynamicalSDEFunction, g, v0, u0, tspan,
198
195
else
199
196
_f = f
200
197
end
201
- SDEProblem (_f, g, ArrayPartition (v0, u0), tspan, p; kwargs... )
198
+ SDEProblem (_f, ArrayPartition (v0, u0), tspan, p; kwargs... )
202
199
end
0 commit comments