Skip to content

Commit c2ee62c

Browse files
committed
Interface cishp
1 parent c65f981 commit c2ee62c

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

docs/src/core.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ CUTEst.cjprod
3333
CUTEst.ccfg
3434
CUTEst.ccf
3535
CUTEst.cish
36+
CUTEst.cishp
3637
CUTEst.ushprod
3738
CUTEst.cdimchp
3839
CUTEst.ureport

gen/wrapper.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ function main()
3131
"CUTEst_realloc",
3232
"CUTEst_free",
3333
"VarTypes",
34+
"cutest_load_routines_",
35+
"cutest_load_routines_s_",
36+
"cutest_load_routines_q_",
37+
"cutest_unload_routines_",
38+
"cutest_unload_routines_s_",
39+
"cutest_unload_routines_q_",
3440
]
3541

3642
args = get_default_args()

src/core_interface.jl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,30 @@ for (cutest_cish, T) in
22752275
end
22762276
end
22772277

2278+
"""
2279+
cishp(T, libsif, status, n, iprob, nnzh, lh, irnh, icnh)
2280+
"""
2281+
function cishp end
2282+
2283+
for (cutest_cishp, T) in
2284+
((:cutest_cishp_s_, :Float32), (:cutest_cishp_, :Float64), (:cutest_cishp_q_, :Float128))
2285+
@eval begin
2286+
function cishp(
2287+
::Type{$T},
2288+
libsif::Ptr{Cvoid},
2289+
status::StrideOneVector{Cint},
2290+
n::StrideOneVector{Cint},
2291+
iprob::StrideOneVector{Cint},
2292+
nnzh::StrideOneVector{Cint},
2293+
lh::StrideOneVector{Cint},
2294+
irnh::StrideOneVector{Cint},
2295+
icnh::StrideOneVector{Cint},
2296+
)
2297+
$cutest_cishp(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
2298+
end
2299+
end
2300+
end
2301+
22782302
"""
22792303
csgrsh(T, libsif, status, n, m, x, y, grlagf, nnzj, lj, j_val, j_var, j_fun, nnzh, lh, h_val, h_row, h_col)
22802304

src/libcutest.jl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,12 @@ function cutest_cish_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
420420
icnh::Ptr{Cint})::Cvoid
421421
end
422422

423+
function cutest_cishp_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
424+
ptr_cutest_cishp_ = Libdl.dlsym(libsif, :cutest_cishp_)
425+
@ccall $ptr_cutest_cishp_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
426+
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
427+
end
428+
423429
function cutest_cint_csgrsh_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun,
424430
nnzh, lh, h, irnh, icnh)
425431
ptr_cutest_cint_csgrsh_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_)
@@ -976,6 +982,12 @@ function cutest_cish_s_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
976982
icnh::Ptr{Cint})::Cvoid
977983
end
978984

985+
function cutest_cishp_s_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
986+
ptr_cutest_cishp_s_ = Libdl.dlsym(libsif, :cutest_cishp_s_)
987+
@ccall $ptr_cutest_cishp_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
988+
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
989+
end
990+
979991
function cutest_cint_csgrsh_s_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar,
980992
indfun, nnzh, lh, h, irnh, icnh)
981993
ptr_cutest_cint_csgrsh_s_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_s_)
@@ -1536,6 +1548,12 @@ function cutest_cish_q_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
15361548
icnh::Ptr{Cint})::Cvoid
15371549
end
15381550

1551+
function cutest_cishp_q_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
1552+
ptr_cutest_cishp_q_ = Libdl.dlsym(libsif, :cutest_cishp_q_)
1553+
@ccall $ptr_cutest_cishp_q_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
1554+
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
1555+
end
1556+
15391557
function cutest_cint_csgrsh_q_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar,
15401558
indfun, nnzh, lh, h, irnh, icnh)
15411559
ptr_cutest_cint_csgrsh_q_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_q_)

0 commit comments

Comments
 (0)