@@ -644,7 +644,7 @@ function test_linearity_no_hess()
644
644
model = Nonlinear. Model ()
645
645
ex = Nonlinear. add_expression (model, :($ x + 1 ))
646
646
Nonlinear. set_objective (model, ex)
647
- evaluator = Nonlinear. Evaluator (model, Nonlinear . SparseReverseMode (), [x])
647
+ evaluator = Nonlinear. Evaluator (model, ArrayAD . Mode (), [x])
648
648
MOI. initialize (evaluator, [:Grad , :Jac ])
649
649
# We initialized without the need for the hessian so
650
650
# the linearity shouldn't be computed.
@@ -1248,7 +1248,7 @@ end
1248
1248
function test_unsafe_vector_view ()
1249
1249
x = Float64[]
1250
1250
GC. @preserve x begin
1251
- view = MOI . Nonlinear . ArrayAD. _UnsafeVectorView (x, 3 )
1251
+ view = ArrayAD. _UnsafeVectorView (x, 3 )
1252
1252
@test length (x) == 3
1253
1253
view[2 ] = 1.0
1254
1254
@test x[2 ] == 1.0
@@ -1389,12 +1389,12 @@ end
1389
1389
function test_generate_hessian_slice_inner ()
1390
1390
# Test that it evaluates without error. The code contents are tested
1391
1391
# elsewhere.
1392
- MOI . Nonlinear . ArrayAD. _generate_hessian_slice_inner ()
1392
+ ArrayAD. _generate_hessian_slice_inner ()
1393
1393
d = ex = nothing # These arguments are untyped and not needed for this test
1394
- for id in [0 , MOI . Nonlinear . ArrayAD. MAX_CHUNK + 1 ]
1394
+ for id in [0 , ArrayAD. MAX_CHUNK + 1 ]
1395
1395
@test_throws (
1396
1396
ErrorException (" Invalid chunk size: $id " ),
1397
- MOI . Nonlinear . ArrayAD. _hessian_slice_inner (d, ex, id),
1397
+ ArrayAD. _hessian_slice_inner (d, ex, id),
1398
1398
)
1399
1399
end
1400
1400
return
0 commit comments