@@ -46,8 +46,8 @@ function multiple_precision_nlp(
4646 for T in precisions
4747 nlp = nlp_from_T (T)
4848 S = typeof (nlp. meta. x0)
49- x = fill! (S (undef, nlp. meta. nvar), 1 )
50- v = fill! (S (undef, nlp. meta. nvar), 2 )
49+ x = fill! (S (undef, nlp. meta. nvar), T ( 1 ) )
50+ v = fill! (S (undef, nlp. meta. nvar), T ( 2 ) )
5151 @test obj ∈ exclude || typeof (obj (nlp, x)) == T
5252 @test grad ∈ exclude || typeof (grad (nlp, x)) == S
5353 @test hess ∈ exclude || eltype (hess (nlp, x)) == T
@@ -57,11 +57,11 @@ function multiple_precision_nlp(
5757 rows, cols = hess_structure (nlp)
5858 vals = hess_coord (nlp, x)
5959 @test typeof (vals) == S
60- Hv = fill! (S (undef, nlp. meta. nvar), 1 )
60+ Hv = fill! (S (undef, nlp. meta. nvar), T ( 1 ) )
6161 @test eltype (hess_op! (nlp, rows, cols, vals, Hv)) == T
6262 end
6363 if nlp. meta. ncon > 0
64- y = fill! (S (undef, nlp. meta. ncon), 1 )
64+ y = fill! (S (undef, nlp. meta. ncon), T ( 1 ) )
6565 @test cons ∈ exclude || typeof (cons (nlp, x)) == S
6666 @test jac ∈ exclude || eltype (jac (nlp, x)) == T
6767 @test jac_op ∈ exclude || eltype (jac_op (nlp, x)) == T
@@ -81,23 +81,23 @@ function multiple_precision_nlp(
8181 rows, cols = jac_structure (nlp)
8282 vals = jac_coord (nlp, x)
8383 @test typeof (vals) == S
84- Av = fill! (S (undef, nlp. meta. ncon), 0 )
85- Atv = fill! (S (undef, nlp. meta. nvar), 0 )
84+ Av = fill! (S (undef, nlp. meta. ncon), T ( 0 ) )
85+ Atv = fill! (S (undef, nlp. meta. nvar), T ( 0 ) )
8686 @test eltype (jac_op! (nlp, rows, cols, vals, Av, Atv)) == T
8787 if linear_api && nlp. meta. nnln > 0
8888 rows, cols = jac_nln_structure (nlp)
8989 vals = jac_nln_coord (nlp, x)
9090 @test typeof (vals) == S
91- Av = fill! (S (undef, nlp. meta. nnln), 0 )
92- Atv = fill! (S (undef, nlp. meta. nvar), 0 )
91+ Av = fill! (S (undef, nlp. meta. nnln), T ( 0 ) )
92+ Atv = fill! (S (undef, nlp. meta. nvar), T ( 0 ) )
9393 @test eltype (jac_nln_op! (nlp, rows, cols, vals, Av, Atv)) == T
9494 end
9595 if linear_api && nlp. meta. nlin > 0
9696 rows, cols = jac_lin_structure (nlp)
9797 vals = jac_lin_coord (nlp, x)
9898 @test typeof (vals) == S
99- Av = fill! (S (undef, nlp. meta. nlin), 0 )
100- Atv = fill! (S (undef, nlp. meta. nvar), 0 )
99+ Av = fill! (S (undef, nlp. meta. nlin), T ( 0 ) )
100+ Atv = fill! (S (undef, nlp. meta. nvar), T ( 0 ) )
101101 @test eltype (jac_lin_op! (nlp, rows, cols, vals, Av, Atv)) == T
102102 end
103103 end
@@ -109,7 +109,7 @@ function multiple_precision_nlp(
109109 rows, cols = hess_structure (nlp)
110110 vals = hess_coord (nlp, x, y)
111111 @test typeof (vals) == S
112- Hv = fill! (S (undef, nlp. meta. nvar), 0 )
112+ Hv = fill! (S (undef, nlp. meta. nvar), T ( 0 ) )
113113 @test eltype (hess_op! (nlp, rows, cols, vals, Hv)) == T
114114 end
115115 @test jth_hess ∈ exclude || eltype (jth_hess (nlp, x, 1 )) == T
0 commit comments