@@ -88,7 +88,7 @@ struct DiscreteProblem{uType, tType, isinplace, P, F, K} <:
88
88
""" A callback to be applied to every solver which uses the problem."""
89
89
kwargs:: K
90
90
@add_kwonly function DiscreteProblem {iip} (f:: AbstractDiscreteFunction{iip} ,
91
- u0, tspan:: Tuple , p = NullParameters ();
91
+ u0, tspan, p = NullParameters ();
92
92
kwargs... ) where {iip}
93
93
_u0 = prepare_initial_state (u0)
94
94
_tspan = promote_tspan (tspan)
@@ -138,12 +138,12 @@ end
138
138
139
139
Defines a discrete problem with the specified functions.
140
140
"""
141
- function DiscreteProblem (f:: AbstractDiscreteFunction , u0, tspan:: Tuple ,
141
+ function DiscreteProblem (f:: AbstractDiscreteFunction , u0, tspan,
142
142
p = NullParameters (); kwargs... )
143
143
DiscreteProblem {isinplace(f)} (f, u0, tspan, p; kwargs... )
144
144
end
145
145
146
- function DiscreteProblem (f:: Base.Callable , u0, tspan:: Tuple , p = NullParameters ();
146
+ function DiscreteProblem (f:: Base.Callable , u0, tspan, p = NullParameters ();
147
147
kwargs... )
148
148
iip = isinplace (f, 4 )
149
149
DiscreteProblem (DiscreteFunction {iip} (f), u0, tspan, p; kwargs... )
@@ -154,7 +154,7 @@ $(SIGNATURES)
154
154
155
155
Define a discrete problem with the identity map.
156
156
"""
157
- function DiscreteProblem (u0:: Union{AbstractArray, Number} , tspan:: Tuple ,
157
+ function DiscreteProblem (u0:: Union{AbstractArray, Number} , tspan,
158
158
p = NullParameters (); kwargs... )
159
159
iip = u0 isa AbstractArray
160
160
if iip
@@ -197,6 +197,3 @@ struct DiscreteAliasSpecifier
197
197
end
198
198
end
199
199
end
200
-
201
-
202
-
0 commit comments