@@ -47,9 +47,14 @@ function multiple_precision_nls(
4747 nls = nls_from_T (T)
4848 S = typeof (nls. meta. x0)
4949 x = fill! (S (undef, nls. meta. nvar), 1 )
50+ v = fill! (S (undef, nls. meta. nvar), 2 )
51+ y = fill! (S (undef, nls. meta. ncon), 2 )
52+ w = fill! (S (undef, nls. nls_meta. nequ), 2 )
5053 @test residual ∈ exclude || typeof (residual (nls, x)) == S
5154 @test jac_residual ∈ exclude || eltype (jac_residual (nls, x)) == T
5255 @test jac_op_residual ∈ exclude || eltype (jac_op_residual (nls, x)) == T
56+ @test jprod_residual ∈ exclude || typeof (jprod_residual (nls, x, v)) == S
57+ @test jtprod_residual ∈ exclude || typeof (jtprod_residual (nls, x, w)) == S
5358 if jac_coord_residual ∉ exclude && jac_op_residual ∉ exclude
5459 rows, cols = jac_structure_residual (nls)
5560 vals = jac_coord_residual (nls, x)
@@ -64,6 +69,11 @@ function multiple_precision_nls(
6469 @test eltype (hess_op_residual (nls, x, i)) == T
6570 end
6671 end
72+ if hprod_residual ∉ exclude
73+ for i = 1 : (nls. nls_meta. nequ)
74+ @test typeof (hprod_residual (nls, x, i, v)) == S
75+ end
76+ end
6777 @test obj ∈ exclude || typeof (obj (nls, x)) == T
6878 @test grad ∈ exclude || typeof (grad (nls, x)) == S
6979 if nls. meta. ncon > 0
@@ -87,6 +97,8 @@ function multiple_precision_nls(
8797 Av = fill! (S (undef, nls. meta. ncon), 0 )
8898 Atv = fill! (S (undef, nls. meta. nvar), 0 )
8999 @test eltype (jac_op! (nls, rows, cols, vals, Av, Atv)) == T
100+ @test jprod ∈ exclude || typeof (jprod (nls, x, v)) == S
101+ @test jtprod ∈ exclude || typeof (jtprod (nls, x, y)) == S
90102 if linear_api && nls. meta. nnln > 0
91103 rows, cols = jac_nln_structure (nls)
92104 vals = jac_nln_coord (nls, x)
0 commit comments