89
89
90
90
# Scalar output
91
91
function _build_function (target:: JuliaTarget , op:: Operation , args... ;
92
- conv = simplified_expr , expression = Val{true },
92
+ conv = toexpr , expression = Val{true },
93
93
checkbounds = false ,
94
94
linenumbers = true , headerfun= addheader)
95
95
@@ -163,7 +163,7 @@ Build function target: JuliaTarget
163
163
164
164
```julia
165
165
function _build_function(target::JuliaTarget, rhss, args...;
166
- conv = simplified_expr , expression = Val{true},
166
+ conv = toexpr , expression = Val{true},
167
167
checkbounds = false,
168
168
linenumbers = false, multithread=nothing,
169
169
headerfun = addheader, outputidxs=nothing,
@@ -198,7 +198,7 @@ Special Keyword Argumnets:
198
198
- `DaggerForm()`: Multithreading and multiprocessing using Julia's Dagger.jl
199
199
for dynamic scheduling and load balancing.
200
200
- `conv`: The conversion function of the Operation to Expr. By default this uses
201
- the `simplified_expr ` function utilized in `convert(Expr,x)`.
201
+ the `toexpr ` function utilized in `convert(Expr,x)`.
202
202
- `checkbounds`: For whether to enable bounds checking inside of the generated
203
203
function. Defaults to false, meaning that `@inbounds` is applied.
204
204
- `linenumbers`: Determines whether the generated function expression retains
@@ -216,7 +216,7 @@ Special Keyword Argumnets:
216
216
safety with `skipzeros`.
217
217
"""
218
218
function _build_function (target:: JuliaTarget , rhss, args... ;
219
- conv = simplified_expr , expression = Val{true },
219
+ conv = toexpr , expression = Val{true },
220
220
checkbounds = false ,
221
221
linenumbers = false , multithread= nothing ,
222
222
headerfun = addheader, outputidxs= nothing ,
@@ -493,7 +493,7 @@ Build function target: CTarget
493
493
494
494
```julia
495
495
function _build_function(target::CTarget, eqs::Array{<:Equation}, args...;
496
- conv = simplified_expr , expression = Val{true},
496
+ conv = toexpr , expression = Val{true},
497
497
fname = :diffeqf,
498
498
lhsname=:du,rhsnames=[Symbol("RHS\$ i") for i in 1:length(args)],
499
499
libpath=tempname(),compiler=:gcc)
@@ -509,7 +509,7 @@ control the compilation:
509
509
only available option.
510
510
"""
511
511
function _build_function (target:: CTarget , eqs:: Array{<:Equation} , args... ;
512
- conv = simplified_expr , expression = Val{true },
512
+ conv = toexpr , expression = Val{true },
513
513
fname = :diffeqf ,
514
514
lhsname= :du ,rhsnames= [Symbol (" RHS$i " ) for i in 1 : length (args)],
515
515
libpath= tempname (),compiler= :gcc )
@@ -541,7 +541,7 @@ Build function target: StanTarget
541
541
542
542
```julia
543
543
function _build_function(target::StanTarget, eqs::Array{<:Equation}, vs, ps, iv;
544
- conv = simplified_expr , expression = Val{true},
544
+ conv = toexpr , expression = Val{true},
545
545
fname = :diffeqf, lhsname=:internal_var___du,
546
546
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
547
547
```
@@ -551,7 +551,7 @@ Unlike other build targets, this one requestions (vs, ps, iv) as the function ar
551
551
Only allowed on arrays of equations.
552
552
"""
553
553
function _build_function (target:: StanTarget , eqs:: Array{<:Equation} , vs, ps, iv;
554
- conv = simplified_expr , expression = Val{true },
554
+ conv = toexpr , expression = Val{true },
555
555
fname = :diffeqf , lhsname= :internal_var___du ,
556
556
rhsnames= [:internal_var___u ,:internal_var___p ,:internal_var___t ])
557
557
@assert expression == Val{true }
@@ -572,7 +572,7 @@ Build function target: MATLABTarget
572
572
573
573
```julia
574
574
function _build_function(target::MATLABTarget, eqs::Array{<:Equation}, args...;
575
- conv = simplified_expr , expression = Val{true},
575
+ conv = toexpr , expression = Val{true},
576
576
lhsname=:internal_var___du,
577
577
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
578
578
```
@@ -582,7 +582,7 @@ Compatible with the MATLAB differential equation solvers. Only allowed on arrays
582
582
of equations.
583
583
"""
584
584
function _build_function (target:: MATLABTarget , eqs:: Array{<:Equation} , args... ;
585
- conv = simplified_expr , expression = Val{true },
585
+ conv = toexpr , expression = Val{true },
586
586
fname = :diffeqf , lhsname= :internal_var___du ,
587
587
rhsnames= [:internal_var___u ,:internal_var___p ,:internal_var___t ])
588
588
@assert expression == Val{true }
0 commit comments