Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SIFDecode_jll = "54dcf436-342f-53ea-8005-3708a1ae6c8c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
CUTEst_jll = "2.5.6"
CUTEst_jll = "2.6.0"
Combinatorics = "1.0"
DataStructures = "0.18"
JSON = "0.21"
Expand Down
1 change: 1 addition & 0 deletions docs/src/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ CUTEst.cjprod
CUTEst.ccfg
CUTEst.ccf
CUTEst.cish
CUTEst.cishp
CUTEst.ushprod
CUTEst.cdimchp
CUTEst.ureport
Expand Down
2 changes: 1 addition & 1 deletion gen/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"

[compat]
CUTEst_jll = "2.5.0"
CUTEst_jll = "2.6.0"
julia = "1.10"
6 changes: 6 additions & 0 deletions gen/wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ function main()
"CUTEst_realloc",
"CUTEst_free",
"VarTypes",
"cutest_load_routines_",
"cutest_load_routines_s_",
"cutest_load_routines_q_",
"cutest_unload_routines_",
"cutest_unload_routines_s_",
"cutest_unload_routines_q_",
]

args = get_default_args()
Expand Down
24 changes: 24 additions & 0 deletions src/core_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2275,6 +2275,30 @@ for (cutest_cish, T) in
end
end

"""
cishp(T, libsif, status, n, iprob, nnzh, lh, irnh, icnh)
"""
function cishp end

for (cutest_cishp, T) in
((:cutest_cishp_s_, :Float32), (:cutest_cishp_, :Float64), (:cutest_cishp_q_, :Float128))
@eval begin
function cishp(
::Type{$T},
libsif::Ptr{Cvoid},
status::StrideOneVector{Cint},
n::StrideOneVector{Cint},
iprob::StrideOneVector{Cint},
nnzh::StrideOneVector{Cint},
lh::StrideOneVector{Cint},
irnh::StrideOneVector{Cint},
icnh::StrideOneVector{Cint},
)
$cutest_cishp(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
end
end
end

"""
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)

Expand Down
18 changes: 18 additions & 0 deletions src/libcutest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ function cutest_cish_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
icnh::Ptr{Cint})::Cvoid
end

function cutest_cishp_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
ptr_cutest_cishp_ = Libdl.dlsym(libsif, :cutest_cishp_)
@ccall $ptr_cutest_cishp_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
end

function cutest_cint_csgrsh_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun,
nnzh, lh, h, irnh, icnh)
ptr_cutest_cint_csgrsh_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_)
Expand Down Expand Up @@ -976,6 +982,12 @@ function cutest_cish_s_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
icnh::Ptr{Cint})::Cvoid
end

function cutest_cishp_s_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
ptr_cutest_cishp_s_ = Libdl.dlsym(libsif, :cutest_cishp_s_)
@ccall $ptr_cutest_cishp_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
end

function cutest_cint_csgrsh_s_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar,
indfun, nnzh, lh, h, irnh, icnh)
ptr_cutest_cint_csgrsh_s_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_s_)
Expand Down Expand Up @@ -1536,6 +1548,12 @@ function cutest_cish_q_(libsif, status, n, x, iprob, nnzh, lh, h, irnh, icnh)
icnh::Ptr{Cint})::Cvoid
end

function cutest_cishp_q_(libsif, status, n, iprob, nnzh, lh, irnh, icnh)
ptr_cutest_cishp_q_ = Libdl.dlsym(libsif, :cutest_cishp_q_)
@ccall $ptr_cutest_cishp_q_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzh::Ptr{Cint},
lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid
end

function cutest_cint_csgrsh_q_(libsif, status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar,
indfun, nnzh, lh, h, irnh, icnh)
ptr_cutest_cint_csgrsh_q_ = Libdl.dlsym(libsif, :cutest_cint_csgrsh_q_)
Expand Down
Loading