@@ -32,18 +32,17 @@ end a b c d
3232extra definitions (Jacobian, parameter Jacobian, etc.) defined through the MTK
3333symbolic tools.
3434"""
35- macro ode_def (name,ex,params... )
36- opts = Dict {Symbol,Bool} (
37- :build_tgrad => true ,
38- :build_jac => true ,
39- :build_expjac => false ,
40- :build_invjac => false ,
41- :build_invW => false ,
42- :build_hes => false ,
43- :build_invhes => false ,
44- :build_dpfuncs => true )
45- name isa Expr ? ode_def_opts (gensym (),opts,__module__,name,ex,params... ) :
46- ode_def_opts (name,opts,__module__,ex,params... )
35+ macro ode_def (name, ex, params... )
36+ opts = Dict {Symbol, Bool} (:build_tgrad => true ,
37+ :build_jac => true ,
38+ :build_expjac => false ,
39+ :build_invjac => false ,
40+ :build_invW => false ,
41+ :build_hes => false ,
42+ :build_invhes => false ,
43+ :build_dpfuncs => true )
44+ name isa Expr ? ode_def_opts (gensym (), opts, __module__, name, ex, params... ) :
45+ ode_def_opts (name, opts, __module__, ex, params... )
4746end
4847
4948"""
@@ -56,18 +55,17 @@ end parameters :: ODEFunction
5655Like `@ode_def` but the `opts` options are set so that no symbolic functions are generated.
5756See the `@ode_def` docstring for more details.
5857"""
59- macro ode_def_bare (name,ex,params... )
60- opts = Dict {Symbol,Bool} (
61- :build_tgrad => false ,
62- :build_jac => false ,
63- :build_expjac => false ,
64- :build_invjac => false ,
65- :build_invW => false ,
66- :build_hes => false ,
67- :build_invhes => false ,
68- :build_dpfuncs => false )
69- name isa Expr ? ode_def_opts (gensym (),opts,__module__,name,ex,params... ) :
70- ode_def_opts (name,opts,__module__,ex,params... )
58+ macro ode_def_bare (name, ex, params... )
59+ opts = Dict {Symbol, Bool} (:build_tgrad => false ,
60+ :build_jac => false ,
61+ :build_expjac => false ,
62+ :build_invjac => false ,
63+ :build_invW => false ,
64+ :build_hes => false ,
65+ :build_invhes => false ,
66+ :build_dpfuncs => false )
67+ name isa Expr ? ode_def_opts (gensym (), opts, __module__, name, ex, params... ) :
68+ ode_def_opts (name, opts, __module__, ex, params... )
7169end
7270
7371"""
@@ -80,16 +78,15 @@ end parameters :: ODEFunction
8078Like `@ode_def` but the `opts` options are set so that all possible symbolic functions are generated.
8179See the `@ode_def` docstring for more details.
8280"""
83- macro ode_def_all (name,ex,params... )
84- opts = Dict {Symbol,Bool} (
85- :build_tgrad => true ,
86- :build_jac => true ,
87- :build_expjac => false ,
88- :build_invjac => false ,
89- :build_invW => true ,
90- :build_hes => false ,
91- :build_invhes => false ,
92- :build_dpfuncs => true )
93- name isa Expr ? ode_def_opts (gensym (),opts,__module__,name,ex,params... ) :
94- ode_def_opts (name,opts,__module__,ex,params... )
81+ macro ode_def_all (name, ex, params... )
82+ opts = Dict {Symbol, Bool} (:build_tgrad => true ,
83+ :build_jac => true ,
84+ :build_expjac => false ,
85+ :build_invjac => false ,
86+ :build_invW => true ,
87+ :build_hes => false ,
88+ :build_invhes => false ,
89+ :build_dpfuncs => true )
90+ name isa Expr ? ode_def_opts (gensym (), opts, __module__, name, ex, params... ) :
91+ ode_def_opts (name, opts, __module__, ex, params... )
9592end
0 commit comments