Skip to content

Commit 73ea3b1

Browse files
committed
simplified_expr -> toexpr
1 parent e8570a1 commit 73ea3b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/build_function.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ end
8989

9090
# Scalar output
9191
function _build_function(target::JuliaTarget, op::Operation, args...;
92-
conv = simplified_expr, expression = Val{true},
92+
conv = toexpr, expression = Val{true},
9393
checkbounds = false,
9494
linenumbers = true, headerfun=addheader)
9595

@@ -163,7 +163,7 @@ Build function target: JuliaTarget
163163
164164
```julia
165165
function _build_function(target::JuliaTarget, rhss, args...;
166-
conv = simplified_expr, expression = Val{true},
166+
conv = toexpr, expression = Val{true},
167167
checkbounds = false,
168168
linenumbers = false, multithread=nothing,
169169
headerfun = addheader, outputidxs=nothing,
@@ -198,7 +198,7 @@ Special Keyword Argumnets:
198198
- `DaggerForm()`: Multithreading and multiprocessing using Julia's Dagger.jl
199199
for dynamic scheduling and load balancing.
200200
- `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)`.
202202
- `checkbounds`: For whether to enable bounds checking inside of the generated
203203
function. Defaults to false, meaning that `@inbounds` is applied.
204204
- `linenumbers`: Determines whether the generated function expression retains
@@ -216,7 +216,7 @@ Special Keyword Argumnets:
216216
safety with `skipzeros`.
217217
"""
218218
function _build_function(target::JuliaTarget, rhss, args...;
219-
conv = simplified_expr, expression = Val{true},
219+
conv = toexpr, expression = Val{true},
220220
checkbounds = false,
221221
linenumbers = false, multithread=nothing,
222222
headerfun = addheader, outputidxs=nothing,
@@ -493,7 +493,7 @@ Build function target: CTarget
493493
494494
```julia
495495
function _build_function(target::CTarget, eqs::Array{<:Equation}, args...;
496-
conv = simplified_expr, expression = Val{true},
496+
conv = toexpr, expression = Val{true},
497497
fname = :diffeqf,
498498
lhsname=:du,rhsnames=[Symbol("RHS\$i") for i in 1:length(args)],
499499
libpath=tempname(),compiler=:gcc)
@@ -509,7 +509,7 @@ control the compilation:
509509
only available option.
510510
"""
511511
function _build_function(target::CTarget, eqs::Array{<:Equation}, args...;
512-
conv = simplified_expr, expression = Val{true},
512+
conv = toexpr, expression = Val{true},
513513
fname = :diffeqf,
514514
lhsname=:du,rhsnames=[Symbol("RHS$i") for i in 1:length(args)],
515515
libpath=tempname(),compiler=:gcc)
@@ -541,7 +541,7 @@ Build function target: StanTarget
541541
542542
```julia
543543
function _build_function(target::StanTarget, eqs::Array{<:Equation}, vs, ps, iv;
544-
conv = simplified_expr, expression = Val{true},
544+
conv = toexpr, expression = Val{true},
545545
fname = :diffeqf, lhsname=:internal_var___du,
546546
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
547547
```
@@ -551,7 +551,7 @@ Unlike other build targets, this one requestions (vs, ps, iv) as the function ar
551551
Only allowed on arrays of equations.
552552
"""
553553
function _build_function(target::StanTarget, eqs::Array{<:Equation}, vs, ps, iv;
554-
conv = simplified_expr, expression = Val{true},
554+
conv = toexpr, expression = Val{true},
555555
fname = :diffeqf, lhsname=:internal_var___du,
556556
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
557557
@assert expression == Val{true}
@@ -572,7 +572,7 @@ Build function target: MATLABTarget
572572
573573
```julia
574574
function _build_function(target::MATLABTarget, eqs::Array{<:Equation}, args...;
575-
conv = simplified_expr, expression = Val{true},
575+
conv = toexpr, expression = Val{true},
576576
lhsname=:internal_var___du,
577577
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
578578
```
@@ -582,7 +582,7 @@ Compatible with the MATLAB differential equation solvers. Only allowed on arrays
582582
of equations.
583583
"""
584584
function _build_function(target::MATLABTarget, eqs::Array{<:Equation}, args...;
585-
conv = simplified_expr, expression = Val{true},
585+
conv = toexpr, expression = Val{true},
586586
fname = :diffeqf, lhsname=:internal_var___du,
587587
rhsnames=[:internal_var___u,:internal_var___p,:internal_var___t])
588588
@assert expression == Val{true}

0 commit comments

Comments
 (0)