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 f12640a commit a1f3cffCopy full SHA for a1f3cff
test/Nonlinear/SymbolicAD.jl
@@ -91,7 +91,7 @@ function test_derivative()
91
op(:*, x, op(:^, x, x - 1)),
92
op(:*, op(:^, x, x), op(:log, x)),
93
),
94
- op(:^, x, 3)=>3.0 * x * x,
+ op(:^, x, 3)=>3.0*x*x,
95
# :/
96
op(:/, x, 2)=>0.5,
97
op(
@@ -401,7 +401,7 @@ function test_simplify_VectorNonlinearFunction()
401
return op(:+, op(:-, f, 0.0), 0.0)
402
end
403
f = MOI.VectorNonlinearFunction(wrap.([y; x_plus]))
404
- g = MOI.Utilities.vectorize([sum(1.0.*x.*x); x])
+ g = MOI.Utilities.vectorize([sum(1.0 .* x .* x); x])
405
@test SymbolicAD.simplify(f) ≈ g
406
return
407
@@ -742,7 +742,7 @@ function test_simplify_if_quadratic()
742
op(:/, x, 2)=>0.5*x,
743
op(:/, 1.0 * x, 2)=>0.5*x,
744
op(:/, 2.0 * x, 2)=>x,
745
- op(:/, 2.0 * x * x, 2)=>1.0 * x * x,
+ op(:/, 2.0 * x * x, 2)=>1.0*x*x,
746
# Early termination because not affine
747
op(:+, op(:sin, x))=>nothing,
748
op(:-, op(:sin, x))=>nothing,
0 commit comments