File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ an array of variable expressions.
8
8
"""
9
9
function gradient (O:: Expression , vars:: AbstractVector{<:Expression} ; simplify = true )
10
10
out = [expand_derivatives (Differential (v)(O)) for v in vars]
11
- simplify ? simplify .(out) : out
11
+ simplify ? ModelingToolkit . simplify .(out) : out
12
12
end
13
13
14
14
"""
@@ -21,7 +21,7 @@ an array of variable expressions.
21
21
"""
22
22
function jacobian (ops:: AbstractVector{<:Expression} , vars:: AbstractVector{<:Expression} ; simplify = true )
23
23
out = [expand_derivatives (Differential (v)(O)) for O in ops, v in vars]
24
- simplify ? simplify .(out) : out
24
+ simplify ? ModelingToolkit . simplify .(out) : out
25
25
end
26
26
27
27
"""
@@ -34,7 +34,7 @@ an array of variable expressions.
34
34
"""
35
35
function hessian (O:: Expression , vars:: AbstractVector{<:Expression} ; simplify = true )
36
36
out = [expand_derivatives (Differential (v2)(Differential (v1)(O))) for v1 in vars, v2 in vars]
37
- simplify ? simplify .(out) : out
37
+ simplify ? ModelingToolkit . simplify .(out) : out
38
38
end
39
39
40
40
function simplified_expr (O:: Operation )
You can’t perform that action at this time.
0 commit comments