We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0a1df commit dc2c676Copy full SHA for dc2c676
src/constants.jl
@@ -38,9 +38,9 @@ Substitute all `@constants` in the given expression
38
"""
39
function subs_constants(eqs)
40
consts = collect_constants(eqs)
41
- if !isempty(consts) # The SymbolicUtils._build_function method of this case doesn't support postprocess_fbody
+ if !isempty(consts)
42
csubs = Dict(c => getdefault(c) for c in consts)
43
eqs = substitute(eqs, csubs)
44
end
45
return eqs
46
-end
+end
0 commit comments