From 22d848724e47fc0576cd9acaf0441536978fca2e Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Mon, 19 Aug 2024 09:00:51 -0400 Subject: [PATCH] Use metaprogramming for generic functions in core_interface.jl --- docs/src/core.md | 2 +- gen/wrapper.jl | 38 +- src/CUTEst.jl | 12 +- src/core_interface.jl | 2968 +++++++++++++++++++++++------------------ src/libcutest.jl | 532 +++++--- src/model.jl | 44 +- src/sifdecoder.jl | 20 +- 7 files changed, 2138 insertions(+), 1478 deletions(-) diff --git a/docs/src/core.md b/docs/src/core.md index fed6a6ac..dfae0e6f 100644 --- a/docs/src/core.md +++ b/docs/src/core.md @@ -12,7 +12,7 @@ For each of those, we dropped the `cutest_`, so the functions `cutest_ufn` and To use then you have to convert the types using `Cint` and `Cdouble`, and pass arrays because of the underlying pointers in Fortran. In practice, there isn't much improvement in calling these or `ccall`s, except -for the use of the internal `cutest_lib`. +for the use of the internal `cutest_lib_double`. **Only use these functions if you really know what you're doing.** diff --git a/gen/wrapper.jl b/gen/wrapper.jl index 4c2b3bb9..d85c7d70 100644 --- a/gen/wrapper.jl +++ b/gen/wrapper.jl @@ -16,6 +16,7 @@ function main() args = get_default_args() push!(args, "-I$include_dir") + push!(args, "-DREAL_128") ctx = create_context(headers, args, options) build!(ctx) @@ -44,13 +45,48 @@ function main() for (index, block) in enumerate(blocks) if contains(block, "function") fname = split(split(block, "function ")[2], "(")[1] - ptr = "ptr_$(fname) = Libdl.dlsym(cutest_lib, :$(fname))" + if contains(block, "_s(") || contains(block, "_s_(") + ptr = "ptr_$(fname) = Libdl.dlsym(cutest_lib_single, :$(fname))" + elseif contains(block, "_q(") || contains(block, "_q_(") + ptr = "ptr_$(fname) = Libdl.dlsym(cutest_lib_quadruple, :$(fname))" + else + ptr = "ptr_$(fname) = Libdl.dlsym(cutest_lib_double, :$(fname))" + end block = replace(block, " @ccall libcutest.$fname" => " $ptr\n @ccall \$ptr_$(fname)") end code = code * block (index < nblocks) && (code = code * "end\n") end + # Add wrappers of "fortran_open" and "fortran_close" for single and quadruple precisison + blocks = split(code, "end\n") + nblocks = length(blocks) + code = "" + for (index, block) in enumerate(blocks) + code = code * block + (index < nblocks) && (code = code * "end\n") + for routine in ("fortran_open_", "fortran_close_") + # add the routines `fortran_open_s_` and `fortran_close_s_` + if contains(block, routine) + block_single = block + block_single = replace(block_single, "double" => "single") + block_single = replace(block_single, routine => "$(routine)s_") + block_single = replace(block_single, ":$(routine)s_" => ":$(routine)") + code = code * block_single + (index < nblocks) && (code = code * "end\n") + end + # Add the routines `fortran_open_q_` and `fortran_close_q_` + if contains(block, routine) + block_quadruple = block + block_quadruple = replace(block_quadruple, "double" => "quadruple") + block_quadruple = replace(block_quadruple, routine => "$(routine)q_") + block_quadruple = replace(block_quadruple, ":$(routine)q_" => ":$(routine)") + code = code * block_quadruple + (index < nblocks) && (code = code * "end\n") + end + end + end + write(path, code) format_file(path, YASStyle()) diff --git a/src/CUTEst.jl b/src/CUTEst.jl index ccfeeba4..7a074bc1 100644 --- a/src/CUTEst.jl +++ b/src/CUTEst.jl @@ -1,8 +1,4 @@ -#See JuliaSmoothOptimizers/NLPModels.jl/issues/113 -__precompile__() - # Using CUTEst from Julia. - module CUTEst using CUTEst_jll @@ -14,8 +10,12 @@ using NLPModels import Libdl.dlsym # Only one problem can be interfaced at any given time. -global cutest_instances = 0 -global cutest_lib = C_NULL +global cutest_instances_single = 0 +global cutest_instances_double = 0 +global cutest_instances_quadruple = 0 +global cutest_lib_single = C_NULL +global cutest_lib_double = C_NULL +global cutest_lib_quadruple = C_NULL export CUTEstModel, sifdecoder, build_libsif, set_mastsif diff --git a/src/core_interface.jl b/src/core_interface.jl index 786b3fc7..d9b5d31d 100644 --- a/src/core_interface.jl +++ b/src/core_interface.jl @@ -95,26 +95,32 @@ Usage: - x_l: [OUT] Vector{Cdouble} - x_u: [OUT] Vector{Cdouble} """ -function usetup( - status::StrideOneVector{Cint}, - input::StrideOneVector{Cint}, - out::StrideOneVector{Cint}, - io_buffer::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - x_l::StrideOneVector{Cdouble}, - x_u::StrideOneVector{Cdouble}, -) - cutest_usetup_( - status, - input, - out, - io_buffer, - n, - x, - x_l, - x_u, - ) +function usetup end + +for (cutest_usetup, T) in ((:cutest_usetup_, :Float64),) + @eval begin + function usetup( + status::StrideOneVector{Cint}, + input::StrideOneVector{Cint}, + out::StrideOneVector{Cint}, + io_buffer::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + x_l::StrideOneVector{Cdouble}, + x_u::StrideOneVector{Cdouble}, + ) + $cutest_usetup( + status, + input, + out, + io_buffer, + n, + x, + x_l, + x_u, + ) + end + end end """# csetup @@ -154,44 +160,50 @@ linear, e_order, l_order, v_order) - l_order: [IN] Vector{Cint} - v_order: [IN] Vector{Cint} """ -function csetup( - status::StrideOneVector{Cint}, - input::StrideOneVector{Cint}, - out::StrideOneVector{Cint}, - io_buffer::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - x_l::StrideOneVector{Cdouble}, - x_u::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - c_l::StrideOneVector{Cdouble}, - c_u::StrideOneVector{Cdouble}, - equatn::StrideOneVector{Bool}, - linear::StrideOneVector{Bool}, - e_order::StrideOneVector{Cint}, - l_order::StrideOneVector{Cint}, - v_order::StrideOneVector{Cint}, -) - cutest_cint_csetup_( - status, - input, - out, - io_buffer, - n, - m, - x, - x_l, - x_u, - y, - c_l, - c_u, - equatn, - linear, - e_order, - l_order, - v_order, - ) +function csetup end + +for (cutest_cint_csetup, T) in ((:cutest_cint_csetup_, :Float64),) + @eval begin + function csetup( + status::StrideOneVector{Cint}, + input::StrideOneVector{Cint}, + out::StrideOneVector{Cint}, + io_buffer::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + x_l::StrideOneVector{Cdouble}, + x_u::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + c_l::StrideOneVector{Cdouble}, + c_u::StrideOneVector{Cdouble}, + equatn::StrideOneVector{Bool}, + linear::StrideOneVector{Bool}, + e_order::StrideOneVector{Cint}, + l_order::StrideOneVector{Cint}, + v_order::StrideOneVector{Cint}, + ) + $cutest_cint_csetup( + status, + input, + out, + io_buffer, + n, + m, + x, + x_l, + x_u, + y, + c_l, + c_u, + equatn, + linear, + e_order, + l_order, + v_order, + ) + end + end end """# udimen @@ -213,16 +225,22 @@ Usage: - input: [IN] Vector{Cint} - n: [OUT] Vector{Cint} """ -function udimen( - status::StrideOneVector{Cint}, - input::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, -) - cutest_udimen_( - status, - input, - n, - ) +function udimen end + +for (cutest_udimen, T) in ((:cutest_udimen_, :Float64),) + @eval begin + function udimen( + status::StrideOneVector{Cint}, + input::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + ) + $cutest_udimen( + status, + input, + n, + ) + end + end end """# udimsh @@ -245,11 +263,17 @@ Usage: - status: [OUT] Vector{Cint} - nnzh: [OUT] Vector{Cint} """ -function udimsh(status::StrideOneVector{Cint}, nnzh::StrideOneVector{Cint}) - cutest_udimsh_( - status, - nnzh, - ) +function udimsh end + +for (cutest_udimsh, T) in ((:cutest_udimsh_, :Float64),) + @eval begin + function udimsh(status::StrideOneVector{Cint}, nnzh::StrideOneVector{Cint}) + $cutest_udimsh( + status, + nnzh, + ) + end + end end """# udimse @@ -276,18 +300,24 @@ Usage: - he_val_ne: [OUT] Vector{Cint} - he_row_ne: [OUT] Vector{Cint} """ -function udimse( - status::StrideOneVector{Cint}, - ne::StrideOneVector{Cint}, - he_val_ne::StrideOneVector{Cint}, - he_row_ne::StrideOneVector{Cint}, -) - cutest_udimse_( - status, - ne, - he_val_ne, - he_row_ne, - ) +function udimse end + +for (cutest_udimse, T) in ((:cutest_udimse_, :Float64),) + @eval begin + function udimse( + status::StrideOneVector{Cint}, + ne::StrideOneVector{Cint}, + he_val_ne::StrideOneVector{Cint}, + he_row_ne::StrideOneVector{Cint}, + ) + $cutest_udimse( + status, + ne, + he_val_ne, + he_row_ne, + ) + end + end end """# uvartype @@ -310,16 +340,22 @@ Usage: - n: [IN] Vector{Cint} - x_type: [OUT] Vector{Cint} """ -function uvartype( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x_type::StrideOneVector{Cint}, -) - cutest_uvartype_( - status, - n, - x_type, - ) +function uvartype end + +for (cutest_uvartype, T) in ((:cutest_uvartype_, :Float64),) + @eval begin + function uvartype( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x_type::StrideOneVector{Cint}, + ) + $cutest_uvartype( + status, + n, + x_type, + ) + end + end end """# unames @@ -343,18 +379,24 @@ Usage: To get useful names, use `String(x)` where `x` can be `pname` or `vname[:,i]`. """ -function unames( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - pname::StrideOneVector{UInt8}, - vname::Matrix{UInt8}, -) - cutest_unames_( - status, - n, - pname, - vname, - ) +function unames end + +for (cutest_unames, T) in ((:cutest_unames_, :Float64),) + @eval begin + function unames( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + pname::StrideOneVector{UInt8}, + vname::Matrix{UInt8}, + ) + $cutest_unames( + status, + n, + pname, + vname, + ) + end + end end """# ureport @@ -377,16 +419,22 @@ Usage: - calls: [OUT] Vector{Cdouble} - time: [OUT] Vector{Cdouble} """ -function ureport( - status::StrideOneVector{Cint}, - calls::StrideOneVector{Cdouble}, - time::StrideOneVector{Cdouble}, -) - cutest_ureport_( - status, - calls, - time, - ) +function ureport end + +for (cutest_ureport, T) in ((:cutest_ureport_, :Float64),) + @eval begin + function ureport( + status::StrideOneVector{Cint}, + calls::StrideOneVector{Cdouble}, + time::StrideOneVector{Cdouble}, + ) + $cutest_ureport( + status, + calls, + time, + ) + end + end end """# cdimen @@ -412,18 +460,24 @@ Usage: - n: [OUT] Vector{Cint} - m: [OUT] Vector{Cint} """ -function cdimen( - status::StrideOneVector{Cint}, - input::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, -) - cutest_cdimen_( - status, - input, - n, - m, - ) +function cdimen end + +for (cutest_cdimen, T) in ((:cutest_cdimen_, :Float64),) + @eval begin + function cdimen( + status::StrideOneVector{Cint}, + input::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + ) + $cutest_cdimen( + status, + input, + n, + m, + ) + end + end end """# cdimsj @@ -449,11 +503,17 @@ Usage: - status: [OUT] Vector{Cint} - nnzj: [OUT] Vector{Cint} """ -function cdimsj(status::StrideOneVector{Cint}, nnzj::StrideOneVector{Cint}) - cutest_cdimsj_( - status, - nnzj, - ) +function cdimsj end + +for (cutest_cdimsj, T) in ((:cutest_cdimsj_, :Float64),) + @eval begin + function cdimsj(status::StrideOneVector{Cint}, nnzj::StrideOneVector{Cint}) + $cutest_cdimsj( + status, + nnzj, + ) + end + end end """# cdimsh @@ -478,11 +538,17 @@ Usage: - status: [OUT] Vector{Cint} - nnzh: [OUT] Vector{Cint} """ -function cdimsh(status::StrideOneVector{Cint}, nnzh::StrideOneVector{Cint}) - cutest_cdimsh_( - status, - nnzh, - ) +function cdimsh end + +for (cutest_cdimsh, T) in ((:cutest_cdimsh_, :Float64),) + @eval begin + function cdimsh(status::StrideOneVector{Cint}, nnzh::StrideOneVector{Cint}) + $cutest_cdimsh( + status, + nnzh, + ) + end + end end """# cdimchp @@ -507,11 +573,17 @@ Usage: - status: [OUT] Vector{Cint} - nnzchp: [OUT] Vector{Cint} """ -function cdimchp(status::StrideOneVector{Cint}, nnzchp::StrideOneVector{Cint}) - cutest_cdimchp_( - status, - nnzchp, - ) +function cdimchp end + +for (cutest_cdimchp, T) in ((:cutest_cdimchp_, :Float64),) + @eval begin + function cdimchp(status::StrideOneVector{Cint}, nnzchp::StrideOneVector{Cint}) + $cutest_cdimchp( + status, + nnzchp, + ) + end + end end """# cdimse @@ -540,18 +612,24 @@ Usage: - he_val_ne: [OUT] Vector{Cint} - he_row_ne: [OUT] Vector{Cint} """ -function cdimse( - status::StrideOneVector{Cint}, - ne::StrideOneVector{Cint}, - he_val_ne::StrideOneVector{Cint}, - he_row_ne::StrideOneVector{Cint}, -) - cutest_cdimse_( - status, - ne, - he_val_ne, - he_row_ne, - ) +function cdimse end + +for (cutest_cdimse, T) in ((:cutest_cdimse_, :Float64),) + @eval begin + function cdimse( + status::StrideOneVector{Cint}, + ne::StrideOneVector{Cint}, + he_val_ne::StrideOneVector{Cint}, + he_row_ne::StrideOneVector{Cint}, + ) + $cutest_cdimse( + status, + ne, + he_val_ne, + he_row_ne, + ) + end + end end """# cstats @@ -565,20 +643,26 @@ linear_constraints) - equality_constraints: [OUT] Vector{Cint} - linear_constraints: [OUT] Vector{Cint} """ -function cstats( - status::StrideOneVector{Cint}, - nonlinear_variables_objective::StrideOneVector{Cint}, - nonlinear_variables_constraints::StrideOneVector{Cint}, - equality_constraints::StrideOneVector{Cint}, - linear_constraints::StrideOneVector{Cint}, -) - cutest_cstats_( - status, - nonlinear_variables_objective, - nonlinear_variables_constraints, - equality_constraints, - linear_constraints, - ) +function cstats end + +for (cutest_cstats, T) in ((:cutest_cstats_, :Float64),) + @eval begin + function cstats( + status::StrideOneVector{Cint}, + nonlinear_variables_objective::StrideOneVector{Cint}, + nonlinear_variables_constraints::StrideOneVector{Cint}, + equality_constraints::StrideOneVector{Cint}, + linear_constraints::StrideOneVector{Cint}, + ) + $cutest_cstats( + status, + nonlinear_variables_objective, + nonlinear_variables_constraints, + equality_constraints, + linear_constraints, + ) + end + end end """# cvartype @@ -603,16 +687,22 @@ Usage: - n: [IN] Vector{Cint} - x_type: [OUT] Vector{Cint} """ -function cvartype( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x_type::StrideOneVector{Cint}, -) - cutest_cvartype_( - status, - n, - x_type, - ) +function cvartype end + +for (cutest_cvartype, T) in ((:cutest_cvartype_, :Float64),) + @eval begin + function cvartype( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x_type::StrideOneVector{Cint}, + ) + $cutest_cvartype( + status, + n, + x_type, + ) + end + end end """# cnames @@ -642,22 +732,28 @@ Usage: To get useful names, use `String(x)` where `x` can be `pname`, `vname[:,i]`, or `cname[:,i]`. """ -function cnames( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - pname::StrideOneVector{UInt8}, - vname::Matrix{UInt8}, - cname::Matrix{UInt8}, -) - cutest_cnames_( - status, - n, - m, - pname, - vname, - cname, - ) +function cnames end + +for (cutest_cnames, T) in ((:cutest_cnames_, :Float64),) + @eval begin + function cnames( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + pname::StrideOneVector{UInt8}, + vname::Matrix{UInt8}, + cname::Matrix{UInt8}, + ) + $cutest_cnames( + status, + n, + m, + pname, + vname, + cname, + ) + end + end end """# creport @@ -682,16 +778,22 @@ Usage: - calls: [OUT] Vector{Cdouble} - time: [OUT] Vector{Cdouble} """ -function creport( - status::StrideOneVector{Cint}, - calls::StrideOneVector{Cdouble}, - time::StrideOneVector{Cdouble}, -) - cutest_creport_( - status, - calls, - time, - ) +function creport end + +for (cutest_creport, T) in ((:cutest_creport_, :Float64),) + @eval begin + function creport( + status::StrideOneVector{Cint}, + calls::StrideOneVector{Cdouble}, + time::StrideOneVector{Cdouble}, + ) + $cutest_creport( + status, + calls, + time, + ) + end + end end """# connames @@ -717,12 +819,18 @@ Usage: To get useful names, use `String(cname[:,i])`. """ -function connames(status::StrideOneVector{Cint}, m::StrideOneVector{Cint}, cname::Matrix{UInt8}) - cutest_connames_( - status, - m, - cname, - ) +function connames end + +for (cutest_connames, T) in ((:cutest_connames_, :Float64),) + @eval begin + function connames(status::StrideOneVector{Cint}, m::StrideOneVector{Cint}, cname::Matrix{UInt8}) + $cutest_connames( + status, + m, + cname, + ) + end + end end """# pname @@ -747,16 +855,22 @@ Usage: - input: [IN] Vector{Cint} - pname: [OUT] Vector{UInt8} """ -function pname( - status::StrideOneVector{Cint}, - input::StrideOneVector{Cint}, - pname::StrideOneVector{UInt8}, -) - cutest_pname_( - status, - input, - pname, - ) +function pname end + +for (cutest_pname, T) in ((:cutest_pname_, :Float64),) + @eval begin + function pname( + status::StrideOneVector{Cint}, + input::StrideOneVector{Cint}, + pname::StrideOneVector{UInt8}, + ) + $cutest_pname( + status, + input, + pname, + ) + end + end end """# probname @@ -780,11 +894,17 @@ Usage: To get a useful name, use `String(pname)`. """ -function probname(status::StrideOneVector{Cint}, pname::StrideOneVector{UInt8}) - cutest_probname_( - status, - pname, - ) +function probname end + +for (cutest_probname, T) in ((:cutest_probname_, :Float64),) + @eval begin + function probname(status::StrideOneVector{Cint}, pname::StrideOneVector{UInt8}) + $cutest_probname( + status, + pname, + ) + end + end end """# varnames @@ -810,12 +930,18 @@ Usage: To get useful names, use `String(vname[:, i])`. """ -function varnames(status::StrideOneVector{Cint}, n::StrideOneVector{Cint}, vname::Matrix{UInt8}) - cutest_varnames_( - status, - n, - vname, - ) +function varnames end + +for (cutest_varnames, T) in ((:cutest_varnames_, :Float64),) + @eval begin + function varnames(status::StrideOneVector{Cint}, n::StrideOneVector{Cint}, vname::Matrix{UInt8}) + $cutest_varnames( + status, + n, + vname, + ) + end + end end """# ufn @@ -838,18 +964,24 @@ Usage: - x: [IN] Vector{Cdouble} - f: [OUT] Vector{Cdouble} """ -function ufn( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, -) - cutest_ufn_( - status, - n, - x, - f, - ) +function ufn end + +for (cutest_ufn, T) in ((:cutest_ufn_, :Float64),) + @eval begin + function ufn( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + ) + $cutest_ufn( + status, + n, + x, + f, + ) + end + end end """# ugr @@ -872,18 +1004,24 @@ Usage: - x: [IN] Vector{Cdouble} - g: [OUT] Vector{Cdouble} """ -function ugr( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, -) - cutest_ugr_( - status, - n, - x, - g, - ) +function ugr end + +for (cutest_ugr, T) in ((:cutest_ugr_, :Float64),) + @eval begin + function ugr( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + ) + $cutest_ugr( + status, + n, + x, + g, + ) + end + end end """# uofg @@ -909,22 +1047,28 @@ Usage: - g: [OUT] Vector{Cdouble} - grad: [IN] Vector{Bool} """ -function uofg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - grad::StrideOneVector{Bool}, -) - cutest_cint_uofg_( - status, - n, - x, - f, - g, - grad, - ) +function uofg end + +for (cutest_cint_uofg, T) in ((:cutest_cint_uofg_, :Float64),) + @eval begin + function uofg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_uofg( + status, + n, + x, + f, + g, + grad, + ) + end + end end """# udh @@ -949,20 +1093,26 @@ Usage: - lh1: [IN] Vector{Cint} - h: [OUT] Matrix{Cdouble} """ -function udh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - lh1::StrideOneVector{Cint}, - h::Matrix{Cdouble}, -) - cutest_udh_( - status, - n, - x, - lh1, - h, - ) +function udh end + +for (cutest_udh, T) in ((:cutest_udh_, :Float64),) + @eval begin + function udh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + lh1::StrideOneVector{Cint}, + h::Matrix{Cdouble}, + ) + $cutest_udh( + status, + n, + x, + lh1, + h, + ) + end + end end """# ushp @@ -988,22 +1138,28 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function ushp( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_ushp_( - status, - n, - nnzh, - lh, - h_row, - h_col, - ) +function ushp end + +for (cutest_ushp, T) in ((:cutest_ushp_, :Float64),) + @eval begin + function ushp( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_ushp( + status, + n, + nnzh, + lh, + h_row, + h_col, + ) + end + end end """# ush @@ -1032,26 +1188,32 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function ush( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_ush_( - status, - n, - x, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function ush end + +for (cutest_ush, T) in ((:cutest_ush_, :Float64),) + @eval begin + function ush( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_ush( + status, + n, + x, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# ueh @@ -1086,34 +1248,40 @@ lhe_val, he_val, byrows) - he_val: [OUT] Vector{Cdouble} - byrows: [IN] Vector{Bool} """ -function ueh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - ne::StrideOneVector{Cint}, - lhe_ptr::StrideOneVector{Cint}, - he_row_ptr::StrideOneVector{Cint}, - he_val_ptr::StrideOneVector{Cint}, - lhe_row::StrideOneVector{Cint}, - he_row::StrideOneVector{Cint}, - lhe_val::StrideOneVector{Cint}, - he_val::StrideOneVector{Cdouble}, - byrows::StrideOneVector{Bool}, -) - cutest_cint_ueh_( - status, - n, - x, - ne, - lhe_ptr, - he_row_ptr, - he_val_ptr, - lhe_row, - he_row, - lhe_val, - he_val, - byrows, - ) +function ueh end + +for (cutest_cint_ueh, T) in ((:cutest_cint_ueh_, :Float64),) + @eval begin + function ueh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + ne::StrideOneVector{Cint}, + lhe_ptr::StrideOneVector{Cint}, + he_row_ptr::StrideOneVector{Cint}, + he_val_ptr::StrideOneVector{Cint}, + lhe_row::StrideOneVector{Cint}, + he_row::StrideOneVector{Cint}, + lhe_val::StrideOneVector{Cint}, + he_val::StrideOneVector{Cdouble}, + byrows::StrideOneVector{Bool}, + ) + $cutest_cint_ueh( + status, + n, + x, + ne, + lhe_ptr, + he_row_ptr, + he_val_ptr, + lhe_row, + he_row, + lhe_val, + he_val, + byrows, + ) + end + end end """# ugrdh @@ -1140,22 +1308,28 @@ Usage: - lh1: [IN] Vector{Cint} - h: [OUT] Matrix{Cdouble} """ -function ugrdh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - lh1::StrideOneVector{Cint}, - h::Matrix{Cdouble}, -) - cutest_ugrdh_( - status, - n, - x, - g, - lh1, - h, - ) +function ugrdh end + +for (cutest_ugrdh, T) in ((:cutest_ugrdh_, :Float64),) + @eval begin + function ugrdh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + lh1::StrideOneVector{Cint}, + h::Matrix{Cdouble}, + ) + $cutest_ugrdh( + status, + n, + x, + g, + lh1, + h, + ) + end + end end """# ugrsh @@ -1185,28 +1359,34 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function ugrsh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_ugrsh_( - status, - n, - x, - g, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function ugrsh end + +for (cutest_ugrsh, T) in ((:cutest_ugrsh_, :Float64),) + @eval begin + function ugrsh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_ugrsh( + status, + n, + x, + g, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# ugreh @@ -1243,36 +1423,42 @@ lhe_val, he_val, byrows) - he_val: [OUT] Vector{Cdouble} - byrows: [IN] Vector{Bool} """ -function ugreh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - ne::StrideOneVector{Cint}, - lhe_ptr::StrideOneVector{Cint}, - he_row_ptr::StrideOneVector{Cint}, - he_val_ptr::StrideOneVector{Cint}, - lhe_row::StrideOneVector{Cint}, - he_row::StrideOneVector{Cint}, - lhe_val::StrideOneVector{Cint}, - he_val::StrideOneVector{Cdouble}, - byrows::StrideOneVector{Bool}, -) - cutest_cint_ugreh_( - status, - n, - x, - g, - ne, - lhe_ptr, - he_row_ptr, - he_val_ptr, - lhe_row, - he_row, - lhe_val, - he_val, - byrows, - ) +function ugreh end + +for (cutest_cint_ugreh, T) in ((:cutest_cint_ugreh_, :Float64),) + @eval begin + function ugreh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + ne::StrideOneVector{Cint}, + lhe_ptr::StrideOneVector{Cint}, + he_row_ptr::StrideOneVector{Cint}, + he_val_ptr::StrideOneVector{Cint}, + lhe_row::StrideOneVector{Cint}, + he_row::StrideOneVector{Cint}, + lhe_val::StrideOneVector{Cint}, + he_val::StrideOneVector{Cdouble}, + byrows::StrideOneVector{Bool}, + ) + $cutest_cint_ugreh( + status, + n, + x, + g, + ne, + lhe_ptr, + he_row_ptr, + he_val_ptr, + lhe_row, + he_row, + lhe_val, + he_val, + byrows, + ) + end + end end """# uhprod @@ -1298,22 +1484,28 @@ Usage: - vector: [IN] Vector{Cdouble} - result: [OUT] Vector{Cdouble} """ -function uhprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - vector::StrideOneVector{Cdouble}, - result::StrideOneVector{Cdouble}, -) - cutest_cint_uhprod_( - status, - n, - goth, - x, - vector, - result, - ) +function uhprod end + +for (cutest_cint_uhprod, T) in ((:cutest_cint_uhprod_, :Float64),) + @eval begin + function uhprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + vector::StrideOneVector{Cdouble}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cint_uhprod( + status, + n, + goth, + x, + vector, + result, + ) + end + end end """# ushprod @@ -1346,30 +1538,36 @@ index_nz_result, result) Notice that `vector` and `result` should have allocated dimension of `n`. """ -function ushprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - nnz_vector::StrideOneVector{Cint}, - index_nz_vector::StrideOneVector{Cint}, - vector::StrideOneVector{Cdouble}, - nnz_result::StrideOneVector{Cint}, - index_nz_result::StrideOneVector{Cint}, - result::StrideOneVector{Cdouble}, -) - cutest_cint_ushprod_( - status, - n, - goth, - x, - nnz_vector, - index_nz_vector, - vector, - nnz_result, - index_nz_result, - result, - ) +function ushprod end + +for (cutest_cint_ushprod, T) in ((:cutest_cint_ushprod_, :Float64),) + @eval begin + function ushprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + nnz_vector::StrideOneVector{Cint}, + index_nz_vector::StrideOneVector{Cint}, + vector::StrideOneVector{Cdouble}, + nnz_result::StrideOneVector{Cint}, + index_nz_result::StrideOneVector{Cint}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cint_ushprod( + status, + n, + goth, + x, + nnz_vector, + index_nz_vector, + vector, + nnz_result, + index_nz_result, + result, + ) + end + end end """# ubandh @@ -1397,24 +1595,30 @@ Usage: - lbandh: [IN] Vector{Cint} - max_semibandwidth: [OUT] Vector{Cint} """ -function ubandh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - semibandwidth::StrideOneVector{Cint}, - h_band::Matrix{Cdouble}, - lbandh::StrideOneVector{Cint}, - max_semibandwidth::StrideOneVector{Cint}, -) - cutest_ubandh_( - status, - n, - x, - semibandwidth, - h_band, - lbandh, - max_semibandwidth, - ) +function ubandh end + +for (cutest_ubandh, T) in ((:cutest_ubandh_, :Float64),) + @eval begin + function ubandh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + semibandwidth::StrideOneVector{Cint}, + h_band::Matrix{Cdouble}, + lbandh::StrideOneVector{Cint}, + max_semibandwidth::StrideOneVector{Cint}, + ) + $cutest_ubandh( + status, + n, + x, + semibandwidth, + h_band, + lbandh, + max_semibandwidth, + ) + end + end end """# cfn @@ -1442,22 +1646,28 @@ Usage: - f: [OUT] Vector{Cdouble} - c: [OUT] Vector{Cdouble} """ -function cfn( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, - c::StrideOneVector{Cdouble}, -) - cutest_cfn_( - status, - n, - m, - x, - f, - c, - ) +function cfn end + +for (cutest_cfn, T) in ((:cutest_cfn_, :Float64),) + @eval begin + function cfn( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + c::StrideOneVector{Cdouble}, + ) + $cutest_cfn( + status, + n, + m, + x, + f, + c, + ) + end + end end """# cofg @@ -1485,22 +1695,28 @@ Usage: - g: [OUT] Vector{Cdouble} - grad: [IN] Vector{Bool} """ -function cofg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - grad::StrideOneVector{Bool}, -) - cutest_cint_cofg_( - status, - n, - x, - f, - g, - grad, - ) +function cofg end + +for (cutest_cint_cofg, T) in ((:cutest_cint_cofg_, :Float64),) + @eval begin + function cofg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_cofg( + status, + n, + x, + f, + g, + grad, + ) + end + end end """# cofsg @@ -1531,28 +1747,34 @@ Usage: - g_var: [OUT] Vector{Cint} - grad: [IN] Vector{Bool} """ -function cofsg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, - nnzg::StrideOneVector{Cint}, - lg::StrideOneVector{Cint}, - g_val::StrideOneVector{Cdouble}, - g_var::StrideOneVector{Cint}, - grad::StrideOneVector{Bool}, -) - cutest_cint_cofsg_( - status, - n, - x, - f, - nnzg, - lg, - g_val, - g_var, - grad, - ) +function cofsg end + +for (cutest_cint_cofsg, T) in ((:cutest_cint_cofsg_, :Float64),) + @eval begin + function cofsg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + nnzg::StrideOneVector{Cint}, + lg::StrideOneVector{Cint}, + g_val::StrideOneVector{Cdouble}, + g_var::StrideOneVector{Cint}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_cofsg( + status, + n, + x, + f, + nnzg, + lg, + g_val, + g_var, + grad, + ) + end + end end """# ccfg @@ -1584,30 +1806,36 @@ Usage: - cjac: [OUT] Matrix{Cdouble} - grad: [IN] Vector{Bool} """ -function ccfg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - c::StrideOneVector{Cdouble}, - jtrans::StrideOneVector{Bool}, - lcjac1::StrideOneVector{Cint}, - lcjac2::StrideOneVector{Cint}, - cjac::Matrix{Cdouble}, - grad::StrideOneVector{Bool}, -) - cutest_cint_ccfg_( - status, - n, - m, - x, - c, - jtrans, - lcjac1, - lcjac2, - cjac, - grad, - ) +function ccfg end + +for (cutest_cint_ccfg, T) in ((:cutest_cint_ccfg_, :Float64),) + @eval begin + function ccfg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + c::StrideOneVector{Cdouble}, + jtrans::StrideOneVector{Bool}, + lcjac1::StrideOneVector{Cint}, + lcjac2::StrideOneVector{Cint}, + cjac::Matrix{Cdouble}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_ccfg( + status, + n, + m, + x, + c, + jtrans, + lcjac1, + lcjac2, + cjac, + grad, + ) + end + end end """# clfg @@ -1637,26 +1865,32 @@ Usage: - g: [OUT] Vector{Cdouble} - grad: [IN] Vector{Bool} """ -function clfg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, - g::StrideOneVector{Cdouble}, - grad::StrideOneVector{Bool}, -) - cutest_cint_clfg_( - status, - n, - m, - x, - y, - f, - g, - grad, - ) +function clfg end + +for (cutest_cint_clfg, T) in ((:cutest_cint_clfg_, :Float64),) + @eval begin + function clfg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + g::StrideOneVector{Cdouble}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_clfg( + status, + n, + m, + x, + y, + f, + g, + grad, + ) + end + end end """# cgr @@ -1690,32 +1924,38 @@ Usage: - lj2: [IN] Vector{Cint} - j_val: [OUT] Matrix{Cdouble} """ -function cgr( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - grlagf::StrideOneVector{Bool}, - g::StrideOneVector{Cdouble}, - jtrans::StrideOneVector{Bool}, - lj1::StrideOneVector{Cint}, - lj2::StrideOneVector{Cint}, - j_val::Matrix{Cdouble}, -) - cutest_cint_cgr_( - status, - n, - m, - x, - y, - grlagf, - g, - jtrans, - lj1, - lj2, - j_val, - ) +function cgr end + +for (cutest_cint_cgr, T) in ((:cutest_cint_cgr_, :Float64),) + @eval begin + function cgr( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + grlagf::StrideOneVector{Bool}, + g::StrideOneVector{Cdouble}, + jtrans::StrideOneVector{Bool}, + lj1::StrideOneVector{Cint}, + lj2::StrideOneVector{Cint}, + j_val::Matrix{Cdouble}, + ) + $cutest_cint_cgr( + status, + n, + m, + x, + y, + grlagf, + g, + jtrans, + lj1, + lj2, + j_val, + ) + end + end end """# csgr @@ -1751,32 +1991,38 @@ Usage: - j_var: [OUT] Vector{Cint} - j_fun: [OUT] Vector{Cint} """ -function csgr( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - grlagf::StrideOneVector{Bool}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_val::StrideOneVector{Cdouble}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, -) - cutest_cint_csgr_( - status, - n, - m, - x, - y, - grlagf, - nnzj, - lj, - j_val, - j_var, - j_fun, - ) +function csgr end + +for (cutest_cint_csgr, T) in ((:cutest_cint_csgr_, :Float64),) + @eval begin + function csgr( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + grlagf::StrideOneVector{Bool}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_val::StrideOneVector{Cdouble}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + ) + $cutest_cint_csgr( + status, + n, + m, + x, + y, + grlagf, + nnzj, + lj, + j_val, + j_var, + j_fun, + ) + end + end end """# ccfsg @@ -1810,32 +2056,38 @@ Usage: - j_fun: [OUT] Vector{Cint} - grad: [IN] Vector{Bool} """ -function ccfsg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - c::StrideOneVector{Cdouble}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_val::StrideOneVector{Cdouble}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, - grad::StrideOneVector{Bool}, -) - cutest_cint_ccfsg_( - status, - n, - m, - x, - c, - nnzj, - lj, - j_val, - j_var, - j_fun, - grad, - ) +function ccfsg end + +for (cutest_cint_ccfsg, T) in ((:cutest_cint_ccfsg_, :Float64),) + @eval begin + function ccfsg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + c::StrideOneVector{Cdouble}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_val::StrideOneVector{Cdouble}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_ccfsg( + status, + n, + m, + x, + c, + nnzj, + lj, + j_val, + j_var, + j_fun, + grad, + ) + end + end end """# ccifg @@ -1865,24 +2117,30 @@ Usage: - gci: [OUT] Vector{Cdouble} - grad: [IN] Vector{Bool} """ -function ccifg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - icon::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - ci::StrideOneVector{Cdouble}, - gci::StrideOneVector{Cdouble}, - grad::StrideOneVector{Bool}, -) - cutest_cint_ccifg_( - status, - n, - icon, - x, - ci, - gci, - grad, - ) +function ccifg end + +for (cutest_cint_ccifg, T) in ((:cutest_cint_ccifg_, :Float64),) + @eval begin + function ccifg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + icon::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + ci::StrideOneVector{Cdouble}, + gci::StrideOneVector{Cdouble}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_ccifg( + status, + n, + icon, + x, + ci, + gci, + grad, + ) + end + end end """# ccifsg @@ -1916,30 +2174,36 @@ Usage: - gci_var: [OUT] Vector{Cint} - grad: [IN] Vector{Bool} """ -function ccifsg( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - icon::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - ci::StrideOneVector{Cdouble}, - nnzgci::StrideOneVector{Cint}, - lgci::StrideOneVector{Cint}, - gci_val::StrideOneVector{Cdouble}, - gci_var::StrideOneVector{Cint}, - grad::StrideOneVector{Bool}, -) - cutest_cint_ccifsg_( - status, - n, - icon, - x, - ci, - nnzgci, - lgci, - gci_val, - gci_var, - grad, - ) +function ccifsg end + +for (cutest_cint_ccifsg, T) in ((:cutest_cint_ccifsg_, :Float64),) + @eval begin + function ccifsg( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + icon::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + ci::StrideOneVector{Cdouble}, + nnzgci::StrideOneVector{Cint}, + lgci::StrideOneVector{Cint}, + gci_val::StrideOneVector{Cdouble}, + gci_var::StrideOneVector{Cint}, + grad::StrideOneVector{Bool}, + ) + $cutest_cint_ccifsg( + status, + n, + icon, + x, + ci, + nnzgci, + lgci, + gci_val, + gci_var, + grad, + ) + end + end end """# cgrdh @@ -1977,36 +2241,42 @@ Usage: - lh1: [IN] Vector{Cint} - h_val: [OUT] Matrix{Cdouble} """ -function cgrdh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - grlagf::StrideOneVector{Bool}, - g::StrideOneVector{Cdouble}, - jtrans::StrideOneVector{Bool}, - lj1::StrideOneVector{Cint}, - lj2::StrideOneVector{Cint}, - j_val::Matrix{Cdouble}, - lh1::StrideOneVector{Cint}, - h_val::Matrix{Cdouble}, -) - cutest_cint_cgrdh_( - status, - n, - m, - x, - y, - grlagf, - g, - jtrans, - lj1, - lj2, - j_val, - lh1, - h_val, - ) +function cgrdh end + +for (cutest_cint_cgrdh, T) in ((:cutest_cint_cgrdh_, :Float64),) + @eval begin + function cgrdh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + grlagf::StrideOneVector{Bool}, + g::StrideOneVector{Cdouble}, + jtrans::StrideOneVector{Bool}, + lj1::StrideOneVector{Cint}, + lj2::StrideOneVector{Cint}, + j_val::Matrix{Cdouble}, + lh1::StrideOneVector{Cint}, + h_val::Matrix{Cdouble}, + ) + $cutest_cint_cgrdh( + status, + n, + m, + x, + y, + grlagf, + g, + jtrans, + lj1, + lj2, + j_val, + lh1, + h_val, + ) + end + end end """# cdh @@ -2036,24 +2306,30 @@ Usage: - lh1: [IN] Vector{Cint} - h_val: [OUT] Matrix{Cdouble} """ -function cdh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - lh1::StrideOneVector{Cint}, - h_val::Matrix{Cdouble}, -) - cutest_cdh_( - status, - n, - m, - x, - y, - lh1, - h_val, - ) +function cdh end + +for (cutest_cdh, T) in ((:cutest_cdh_, :Float64),) + @eval begin + function cdh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + lh1::StrideOneVector{Cint}, + h_val::Matrix{Cdouble}, + ) + $cutest_cdh( + status, + n, + m, + x, + y, + lh1, + h_val, + ) + end + end end """# cdhc @@ -2083,24 +2359,30 @@ Usage: - lh1: [IN] Vector{Cint} - h_val: [OUT] Matrix{Cdouble} """ -function cdhc( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - lh1::StrideOneVector{Cint}, - h_val::Matrix{Cdouble}, -) - cutest_cdhc_( - status, - n, - m, - x, - y, - lh1, - h_val, - ) +function cdhc end + +for (cutest_cdhc, T) in ((:cutest_cdhc_, :Float64),) + @eval begin + function cdhc( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + lh1::StrideOneVector{Cint}, + h_val::Matrix{Cdouble}, + ) + $cutest_cdhc( + status, + n, + m, + x, + y, + lh1, + h_val, + ) + end + end end """# cshp @@ -2128,22 +2410,28 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function cshp( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_cshp_( - status, - n, - nnzh, - lh, - h_row, - h_col, - ) +function cshp end + +for (cutest_cshp, T) in ((:cutest_cshp_, :Float64),) + @eval begin + function cshp( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_cshp( + status, + n, + nnzh, + lh, + h_row, + h_col, + ) + end + end end """# csh @@ -2176,30 +2464,36 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function csh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_csh_( - status, - n, - m, - x, - y, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function csh end + +for (cutest_csh, T) in ((:cutest_csh_, :Float64),) + @eval begin + function csh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_csh( + status, + n, + m, + x, + y, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# cshc @@ -2232,30 +2526,36 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function cshc( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_cshc_( - status, - n, - m, - x, - y, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function cshc end + +for (cutest_cshc, T) in ((:cutest_cshc_, :Float64),) + @eval begin + function cshc( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_cshc( + status, + n, + m, + x, + y, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# ceh @@ -2295,38 +2595,44 @@ he_row, lhe_val, he_val, byrows) - he_val: [OUT] Vector{Cdouble} - byrows: [IN] Vector{Cint} """ -function ceh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - ne::StrideOneVector{Cint}, - lhe_ptr::StrideOneVector{Cint}, - he_row_ptr::StrideOneVector{Cint}, - he_val_ptr::StrideOneVector{Cint}, - lhe_row::StrideOneVector{Cint}, - he_row::StrideOneVector{Cint}, - lhe_val::StrideOneVector{Cint}, - he_val::StrideOneVector{Cdouble}, - byrows::StrideOneVector{Cint}, -) - cutest_ceh_( - status, - n, - m, - x, - y, - ne, - lhe_ptr, - he_row_ptr, - he_val_ptr, - lhe_row, - he_row, - lhe_val, - he_val, - byrows, - ) +function ceh end + +for (cutest_ceh, T) in ((:cutest_ceh_, :Float64),) + @eval begin + function ceh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + ne::StrideOneVector{Cint}, + lhe_ptr::StrideOneVector{Cint}, + he_row_ptr::StrideOneVector{Cint}, + he_val_ptr::StrideOneVector{Cint}, + lhe_row::StrideOneVector{Cint}, + he_row::StrideOneVector{Cint}, + lhe_val::StrideOneVector{Cint}, + he_val::StrideOneVector{Cdouble}, + byrows::StrideOneVector{Cint}, + ) + $cutest_ceh( + status, + n, + m, + x, + y, + ne, + lhe_ptr, + he_row_ptr, + he_val_ptr, + lhe_row, + he_row, + lhe_val, + he_val, + byrows, + ) + end + end end """# cidh @@ -2355,22 +2661,28 @@ Usage: - lh1: [IN] Vector{Cint} - h: [OUT] Matrix{Cdouble} """ -function cidh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - iprob::StrideOneVector{Cint}, - lh1::StrideOneVector{Cint}, - h::Matrix{Cdouble}, -) - cutest_cidh_( - status, - n, - x, - iprob, - lh1, - h, - ) +function cidh end + +for (cutest_cidh, T) in ((:cutest_cidh_, :Float64),) + @eval begin + function cidh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + iprob::StrideOneVector{Cint}, + lh1::StrideOneVector{Cint}, + h::Matrix{Cdouble}, + ) + $cutest_cidh( + status, + n, + x, + iprob, + lh1, + h, + ) + end + end end """# cish @@ -2402,28 +2714,34 @@ Usage: - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function cish( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - iprob::StrideOneVector{Cint}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_cish_( - status, - n, - x, - iprob, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function cish end + +for (cutest_cish, T) in ((:cutest_cish_, :Float64),) + @eval begin + function cish( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + iprob::StrideOneVector{Cint}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_cish( + status, + n, + x, + iprob, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# csgrsh @@ -2465,42 +2783,48 @@ h_val, h_row, h_col) - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function csgrsh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - grlagf::StrideOneVector{Bool}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_val::StrideOneVector{Cdouble}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_val::StrideOneVector{Cdouble}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_cint_csgrsh_( - status, - n, - m, - x, - y, - grlagf, - nnzj, - lj, - j_val, - j_var, - j_fun, - nnzh, - lh, - h_val, - h_row, - h_col, - ) +function csgrsh end + +for (cutest_cint_csgrsh, T) in ((:cutest_cint_csgrsh_, :Float64),) + @eval begin + function csgrsh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + grlagf::StrideOneVector{Bool}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_val::StrideOneVector{Cdouble}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_val::StrideOneVector{Cdouble}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_cint_csgrsh( + status, + n, + m, + x, + y, + grlagf, + nnzj, + lj, + j_val, + j_var, + j_fun, + nnzh, + lh, + h_val, + h_row, + h_col, + ) + end + end end """# csgreh @@ -2550,50 +2874,56 @@ byrows) - he_val: [OUT] Vector{Cdouble} - byrows: [IN] Vector{Bool} """ -function csgreh( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - grlagf::StrideOneVector{Bool}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_val::StrideOneVector{Cdouble}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, - ne::StrideOneVector{Cint}, - lhe_ptr::StrideOneVector{Cint}, - he_row_ptr::StrideOneVector{Cint}, - he_val_ptr::StrideOneVector{Cint}, - lhe_row::StrideOneVector{Cint}, - he_row::StrideOneVector{Cint}, - lhe_val::StrideOneVector{Cint}, - he_val::StrideOneVector{Cdouble}, - byrows::StrideOneVector{Bool}, -) - cutest_cint_csgreh_( - status, - n, - m, - x, - y, - grlagf, - nnzj, - lj, - j_val, - j_var, - j_fun, - ne, - lhe_ptr, - he_row_ptr, - he_val_ptr, - lhe_row, - he_row, - lhe_val, - he_val, - byrows, - ) +function csgreh end + +for (cutest_cint_csgreh, T) in ((:cutest_cint_csgreh_, :Float64),) + @eval begin + function csgreh( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + grlagf::StrideOneVector{Bool}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_val::StrideOneVector{Cdouble}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + ne::StrideOneVector{Cint}, + lhe_ptr::StrideOneVector{Cint}, + he_row_ptr::StrideOneVector{Cint}, + he_val_ptr::StrideOneVector{Cint}, + lhe_row::StrideOneVector{Cint}, + he_row::StrideOneVector{Cint}, + lhe_val::StrideOneVector{Cint}, + he_val::StrideOneVector{Cdouble}, + byrows::StrideOneVector{Bool}, + ) + $cutest_cint_csgreh( + status, + n, + m, + x, + y, + grlagf, + nnzj, + lj, + j_val, + j_var, + j_fun, + ne, + lhe_ptr, + he_row_ptr, + he_val_ptr, + lhe_row, + he_row, + lhe_val, + he_val, + byrows, + ) + end + end end """# chprod @@ -2624,26 +2954,32 @@ Usage: - vector: [IN] Vector{Cdouble} - result: [OUT] Vector{Cdouble} """ -function chprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - vector::StrideOneVector{Cdouble}, - result::StrideOneVector{Cdouble}, -) - cutest_cint_chprod_( - status, - n, - m, - goth, - x, - y, - vector, - result, - ) +function chprod end + +for (cutest_cint_chprod, T) in ((:cutest_cint_chprod_, :Float64),) + @eval begin + function chprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + vector::StrideOneVector{Cdouble}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cint_chprod( + status, + n, + m, + goth, + x, + y, + vector, + result, + ) + end + end end """# cshprod @@ -2681,34 +3017,40 @@ nnz_result, index_nz_result, result) Notice that `vector` and `result` should have allocated dimension of `n`. """ -function cshprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - goth::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - nnz_vector::StrideOneVector{Cint}, - index_nz_vector::StrideOneVector{Cint}, - vector::StrideOneVector{Cdouble}, - nnz_result::StrideOneVector{Cint}, - index_nz_result::StrideOneVector{Cint}, - result::StrideOneVector{Cdouble}, -) - cutest_cshprod_( - status, - n, - m, - goth, - x, - y, - nnz_vector, - index_nz_vector, - vector, - nnz_result, - index_nz_result, - result, - ) +function cshprod end + +for (cutest_cshprod, T) in ((:cutest_cshprod_, :Float64),) + @eval begin + function cshprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + goth::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + nnz_vector::StrideOneVector{Cint}, + index_nz_vector::StrideOneVector{Cint}, + vector::StrideOneVector{Cdouble}, + nnz_result::StrideOneVector{Cint}, + index_nz_result::StrideOneVector{Cint}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cshprod( + status, + n, + m, + goth, + x, + y, + nnz_vector, + index_nz_vector, + vector, + nnz_result, + index_nz_result, + result, + ) + end + end end """# chcprod @@ -2739,26 +3081,32 @@ Usage: - vector: [IN] Vector{Cdouble} - result: [OUT] Vector{Cdouble} """ -function chcprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - vector::StrideOneVector{Cdouble}, - result::StrideOneVector{Cdouble}, -) - cutest_cint_chcprod_( - status, - n, - m, - goth, - x, - y, - vector, - result, - ) +function chcprod end + +for (cutest_cint_chcprod, T) in ((:cutest_cint_chcprod_, :Float64),) + @eval begin + function chcprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + vector::StrideOneVector{Cdouble}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cint_chcprod( + status, + n, + m, + goth, + x, + y, + vector, + result, + ) + end + end end """# cshcprod @@ -2794,34 +3142,40 @@ nnz_result, index_nz_result, result) - index_nz_result: [OUT] Vector{Cint} - result: [OUT] Vector{Cdouble} """ -function cshcprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - y::StrideOneVector{Cdouble}, - nnz_vector::StrideOneVector{Cint}, - index_nz_vector::StrideOneVector{Cint}, - vector::StrideOneVector{Cdouble}, - nnz_result::StrideOneVector{Cint}, - index_nz_result::StrideOneVector{Cint}, - result::StrideOneVector{Cdouble}, -) - cutest_cint_cshcprod_( - status, - n, - m, - goth, - x, - y, - nnz_vector, - index_nz_vector, - vector, - nnz_result, - index_nz_result, - result, - ) +function cshcprod end + +for (cutest_cint_cshcprod, T) in ((:cutest_cint_cshcprod_, :Float64),) + @eval begin + function cshcprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + y::StrideOneVector{Cdouble}, + nnz_vector::StrideOneVector{Cint}, + index_nz_vector::StrideOneVector{Cint}, + vector::StrideOneVector{Cdouble}, + nnz_result::StrideOneVector{Cint}, + index_nz_result::StrideOneVector{Cint}, + result::StrideOneVector{Cdouble}, + ) + $cutest_cint_cshcprod( + status, + n, + m, + goth, + x, + y, + nnz_vector, + index_nz_vector, + vector, + nnz_result, + index_nz_result, + result, + ) + end + end end """# cjprod @@ -2854,30 +3208,36 @@ Usage: - result: [OUT] Vector{Cdouble} - lresult: [IN] Vector{Cint} """ -function cjprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - gotj::StrideOneVector{Bool}, - jtrans::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - vector::StrideOneVector{Cdouble}, - lvector::StrideOneVector{Cint}, - result::StrideOneVector{Cdouble}, - lresult::StrideOneVector{Cint}, -) - cutest_cint_cjprod_( - status, - n, - m, - gotj, - jtrans, - x, - vector, - lvector, - result, - lresult, - ) +function cjprod end + +for (cutest_cint_cjprod, T) in ((:cutest_cint_cjprod_, :Float64),) + @eval begin + function cjprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + gotj::StrideOneVector{Bool}, + jtrans::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + vector::StrideOneVector{Cdouble}, + lvector::StrideOneVector{Cint}, + result::StrideOneVector{Cdouble}, + lresult::StrideOneVector{Cint}, + ) + $cutest_cint_cjprod( + status, + n, + m, + gotj, + jtrans, + x, + vector, + lvector, + result, + lresult, + ) + end + end end """# csjprod @@ -2915,38 +3275,44 @@ lvector, nnz_result, index_nz_result, result, lresult) - result: [OUT] Vector{Cdouble} - lresult: [IN] Vector{Cint} """ -function csjprod( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - gotj::StrideOneVector{Bool}, - jtrans::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - nnz_vector::StrideOneVector{Cint}, - index_nz_vector::StrideOneVector{Cint}, - vector::StrideOneVector{Cdouble}, - lvector::StrideOneVector{Cint}, - nnz_result::StrideOneVector{Cint}, - index_nz_result::StrideOneVector{Cint}, - result::StrideOneVector{Cdouble}, - lresult::StrideOneVector{Cint}, -) - cutest_cint_csjprod_( - status, - n, - m, - gotj, - jtrans, - x, - nnz_vector, - index_nz_vector, - vector, - lvector, - nnz_result, - index_nz_result, - result, - lresult, - ) +function csjprod end + +for (cutest_cint_csjprod, T) in ((:cutest_cint_csjprod_, :Float64),) + @eval begin + function csjprod( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + gotj::StrideOneVector{Bool}, + jtrans::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + nnz_vector::StrideOneVector{Cint}, + index_nz_vector::StrideOneVector{Cint}, + vector::StrideOneVector{Cdouble}, + lvector::StrideOneVector{Cint}, + nnz_result::StrideOneVector{Cint}, + index_nz_result::StrideOneVector{Cint}, + result::StrideOneVector{Cdouble}, + lresult::StrideOneVector{Cint}, + ) + $cutest_cint_csjprod( + status, + n, + m, + gotj, + jtrans, + x, + nnz_vector, + index_nz_vector, + vector, + lvector, + nnz_result, + index_nz_result, + result, + lresult, + ) + end + end end """# cchprods @@ -2979,30 +3345,36 @@ Usage: - chp_ind: [IN] Vector{Cint} - chp_ptr: [IN] Vector{Cint} """ -function cchprods( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - goth::StrideOneVector{Bool}, - x::StrideOneVector{Cdouble}, - vector::StrideOneVector{Cdouble}, - lchp::StrideOneVector{Cint}, - chp_val::StrideOneVector{Cdouble}, - chp_ind::StrideOneVector{Cint}, - chp_ptr::StrideOneVector{Cint}, -) - cutest_cint_cchprods_( - status, - n, - m, - goth, - x, - vector, - lchp, - chp_val, - chp_ind, - chp_ptr, - ) +function cchprods end + +for (cutest_cint_cchprods, T) in ((:cutest_cint_cchprods_, :Float64),) + @eval begin + function cchprods( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + goth::StrideOneVector{Bool}, + x::StrideOneVector{Cdouble}, + vector::StrideOneVector{Cdouble}, + lchp::StrideOneVector{Cint}, + chp_val::StrideOneVector{Cdouble}, + chp_ind::StrideOneVector{Cint}, + chp_ptr::StrideOneVector{Cint}, + ) + $cutest_cint_cchprods( + status, + n, + m, + goth, + x, + vector, + lchp, + chp_val, + chp_ind, + chp_ptr, + ) + end + end end """# cchprodsp @@ -3021,20 +3393,26 @@ Usage: - chp_ind: [IN] Vector{Cint} - chp_ptr: [IN] Vector{Cint} """ -function cchprodsp( - status::StrideOneVector{Cint}, - m::StrideOneVector{Cint}, - lchp::StrideOneVector{Cint}, - chp_ind::StrideOneVector{Cint}, - chp_ptr::StrideOneVector{Cint}, -) - cutest_cchprodsp_( - status, - m, - lchp, - chp_ind, - chp_ptr, - ) +function cchprodsp end + +for (cutest_cchprodsp, T) in ((:cutest_cchprodsp_, :Float64),) + @eval begin + function cchprodsp( + status::StrideOneVector{Cint}, + m::StrideOneVector{Cint}, + lchp::StrideOneVector{Cint}, + chp_ind::StrideOneVector{Cint}, + chp_ptr::StrideOneVector{Cint}, + ) + $cutest_cchprodsp( + status, + m, + lchp, + chp_ind, + chp_ptr, + ) + end + end end """# uterminate @@ -3051,8 +3429,14 @@ Usage: - status: [OUT] Vector{Cint} """ -function uterminate(status::StrideOneVector{Cint}) - cutest_uterminate_(status) +function uterminate end + +for (cutest_uterminate, T) in ((:cutest_uterminate_, :Float64),) + @eval begin + function uterminate(status::StrideOneVector{Cint}) + $cutest_uterminate(status) + end + end end """# cterminate @@ -3069,8 +3453,14 @@ Usage: - status: [OUT] Vector{Cint} """ -function cterminate(status::StrideOneVector{Cint}) - cutest_cterminate_(status) +function cterminate end + +for (cutest_cterminate, T) in ((:cutest_cterminate_, :Float64),) + @eval begin + function cterminate(status::StrideOneVector{Cint}) + $cutest_cterminate(status) + end + end end """# cifn @@ -3092,20 +3482,26 @@ Usage: - x: [IN] Vector{Cdouble} - f: [OUT] Vector{Cdouble} """ -function cifn( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - iprob::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - f::StrideOneVector{Cdouble}, -) - cutest_cifn_( - status, - n, - iprob, - x, - f, - ) +function cifn end + +for (cutest_cifn, T) in ((:cutest_cifn_, :Float64),) + @eval begin + function cifn( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + iprob::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + f::StrideOneVector{Cdouble}, + ) + $cutest_cifn( + status, + n, + iprob, + x, + f, + ) + end + end end """# cisgr @@ -3129,26 +3525,32 @@ Usage: - g_val: [OUT] Vector{Cdouble} - g_var: [OUT] Vector{Cint} """ -function cisgr( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - iprod::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - nnzg::StrideOneVector{Cint}, - lg::StrideOneVector{Cint}, - g_val::StrideOneVector{Cdouble}, - g_var::StrideOneVector{Cint}, -) - cutest_cisgr_( - status, - n, - iprod, - x, - nnzg, - lg, - g_val, - g_var, - ) +function cisgr end + +for (cutest_cisgr, T) in ((:cutest_cisgr_, :Float64),) + @eval begin + function cisgr( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + iprod::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + nnzg::StrideOneVector{Cint}, + lg::StrideOneVector{Cint}, + g_val::StrideOneVector{Cdouble}, + g_var::StrideOneVector{Cint}, + ) + $cutest_cisgr( + status, + n, + iprod, + x, + nnzg, + lg, + g_val, + g_var, + ) + end + end end """# csgrp @@ -3172,22 +3574,28 @@ Usage: - j_var: [OUT] Vector{Cint} - j_fun: [OUT] Vector{Cint} """ -function csgrp( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, -) - cutest_csgrp_( - status, - n, - nnzj, - lj, - j_var, - j_fun, - ) +function csgrp end + +for (cutest_csgrp, T) in ((:cutest_csgrp_, :Float64),) + @eval begin + function csgrp( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + ) + $cutest_csgrp( + status, + n, + nnzj, + lj, + j_var, + j_fun, + ) + end + end end """# cigr @@ -3205,20 +3613,26 @@ For more information, run the shell command - x: [IN] Vector{Cdouble} - g_val: [OUT] Vector{Cdouble} """ -function cigr( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - iprob::StrideOneVector{Cint}, - x::StrideOneVector{Cdouble}, - g_val::StrideOneVector{Cdouble}, -) - cutest_cigr_( - status, - n, - iprob, - x, - g_val, - ) +function cigr end + +for (cutest_cigr, T) in ((:cutest_cigr_, :Float64),) + @eval begin + function cigr( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + iprob::StrideOneVector{Cint}, + x::StrideOneVector{Cdouble}, + g_val::StrideOneVector{Cdouble}, + ) + $cutest_cigr( + status, + n, + iprob, + x, + g_val, + ) + end + end end """# csgrshp @@ -3243,30 +3657,36 @@ For more information, run the shell command - h_row: [OUT] Vector{Cint} - h_col: [OUT] Vector{Cint} """ -function csgrshp( - status::StrideOneVector{Cint}, - n::StrideOneVector{Cint}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - j_var::StrideOneVector{Cint}, - j_fun::StrideOneVector{Cint}, - nnzh::StrideOneVector{Cint}, - lh::StrideOneVector{Cint}, - h_row::StrideOneVector{Cint}, - h_col::StrideOneVector{Cint}, -) - cutest_csgrshp_( - status, - n, - nnzj, - lj, - j_var, - j_fun, - nnzh, - lh, - h_row, - h_col, - ) +function csgrshp end + +for (cutest_csgrshp, T) in ((:cutest_csgrshp_, :Float64),) + @eval begin + function csgrshp( + status::StrideOneVector{Cint}, + n::StrideOneVector{Cint}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + j_var::StrideOneVector{Cint}, + j_fun::StrideOneVector{Cint}, + nnzh::StrideOneVector{Cint}, + lh::StrideOneVector{Cint}, + h_row::StrideOneVector{Cint}, + h_col::StrideOneVector{Cint}, + ) + $cutest_csgrshp( + status, + n, + nnzj, + lj, + j_var, + j_fun, + nnzh, + lh, + h_row, + h_col, + ) + end + end end """# csjp @@ -3283,18 +3703,24 @@ For more information, run the shell command - jvar: [OUT] Vector{Cint} - jcon: [OUT] Vector{Cint} """ -function csjp( - status::StrideOneVector{Cint}, - nnzj::StrideOneVector{Cint}, - lj::StrideOneVector{Cint}, - jvar::StrideOneVector{Cint}, - jcon::StrideOneVector{Cint} -) - cutest_csjp_( - status, - nnzj, - lj, - jvar, - jcon, - ) +function csjp end + +for (cutest_csjp, T) in ((:cutest_csjp_, :Float64),) + @eval begin + function csjp( + status::StrideOneVector{Cint}, + nnzj::StrideOneVector{Cint}, + lj::StrideOneVector{Cint}, + jvar::StrideOneVector{Cint}, + jcon::StrideOneVector{Cint} + ) + $cutest_csjp( + status, + nnzj, + lj, + jvar, + jcon, + ) + end + end end diff --git a/src/libcutest.jl b/src/libcutest.jl index c7fc34e3..56695f6e 100644 --- a/src/libcutest.jl +++ b/src/libcutest.jl @@ -1,21 +1,21 @@ #! format: off function CUTEst_malloc(object, length, s) - ptr_CUTEst_malloc = Libdl.dlsym(cutest_lib, :CUTEst_malloc) + ptr_CUTEst_malloc = Libdl.dlsym(cutest_lib_double, :CUTEst_malloc) @ccall $ptr_CUTEst_malloc(object::Ptr{Cvoid}, length::Cint, s::Csize_t)::Ptr{Cvoid} end function CUTEst_calloc(object, length, s) - ptr_CUTEst_calloc = Libdl.dlsym(cutest_lib, :CUTEst_calloc) + ptr_CUTEst_calloc = Libdl.dlsym(cutest_lib_double, :CUTEst_calloc) @ccall $ptr_CUTEst_calloc(object::Ptr{Cvoid}, length::Cint, s::Csize_t)::Ptr{Cvoid} end function CUTEst_realloc(object, length, s) - ptr_CUTEst_realloc = Libdl.dlsym(cutest_lib, :CUTEst_realloc) + ptr_CUTEst_realloc = Libdl.dlsym(cutest_lib_double, :CUTEst_realloc) @ccall $ptr_CUTEst_realloc(object::Ptr{Cvoid}, length::Cint, s::Csize_t)::Ptr{Cvoid} end function CUTEst_free(object) - ptr_CUTEst_free = Libdl.dlsym(cutest_lib, :CUTEst_free) + ptr_CUTEst_free = Libdl.dlsym(cutest_lib_double, :CUTEst_free) @ccall $ptr_CUTEst_free(object::Ptr{Ptr{Cvoid}})::Cvoid end @@ -34,7 +34,7 @@ struct VarTypes end function cutest_usetup_(status, funit, iout, io_buffer, n, x, bl, bu) - ptr_cutest_usetup_ = Libdl.dlsym(cutest_lib, :cutest_usetup_) + ptr_cutest_usetup_ = Libdl.dlsym(cutest_lib_double, :cutest_usetup_) @ccall $ptr_cutest_usetup_(status::Ptr{Cint}, funit::Ptr{Cint}, iout::Ptr{Cint}, io_buffer::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, bl::Ptr{Float64}, bu::Ptr{Float64})::Cvoid @@ -42,7 +42,7 @@ end function cutest_cint_csetup_(status, funit, iout, io_buffer, n, m, x, bl, bu, v, cl, cu, equatn, linear, e_order, l_order, v_order) - ptr_cutest_cint_csetup_ = Libdl.dlsym(cutest_lib, :cutest_cint_csetup_) + ptr_cutest_cint_csetup_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_csetup_) @ccall $ptr_cutest_cint_csetup_(status::Ptr{Cint}, funit::Ptr{Cint}, iout::Ptr{Cint}, io_buffer::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, bl::Ptr{Float64}, bu::Ptr{Float64}, v::Ptr{Float64}, @@ -52,163 +52,163 @@ function cutest_cint_csetup_(status, funit, iout, io_buffer, n, m, x, bl, bu, v, end function cutest_udimen_(status, funit, n) - ptr_cutest_udimen_ = Libdl.dlsym(cutest_lib, :cutest_udimen_) + ptr_cutest_udimen_ = Libdl.dlsym(cutest_lib_double, :cutest_udimen_) @ccall $ptr_cutest_udimen_(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint})::Cvoid end function cutest_udimsh_(status, nnzh) - ptr_cutest_udimsh_ = Libdl.dlsym(cutest_lib, :cutest_udimsh_) + ptr_cutest_udimsh_ = Libdl.dlsym(cutest_lib_double, :cutest_udimsh_) @ccall $ptr_cutest_udimsh_(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid end function cutest_udimse_(status, ne, nzh, nzirnh) - ptr_cutest_udimse_ = Libdl.dlsym(cutest_lib, :cutest_udimse_) + ptr_cutest_udimse_ = Libdl.dlsym(cutest_lib_double, :cutest_udimse_) @ccall $ptr_cutest_udimse_(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, nzirnh::Ptr{Cint})::Cvoid end function cutest_uvartype_(status, n, ivarty) - ptr_cutest_uvartype_ = Libdl.dlsym(cutest_lib, :cutest_uvartype_) + ptr_cutest_uvartype_ = Libdl.dlsym(cutest_lib_double, :cutest_uvartype_) @ccall $ptr_cutest_uvartype_(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid end function cutest_unames_(status, n, pname, vnames) - ptr_cutest_unames_ = Libdl.dlsym(cutest_lib, :cutest_unames_) + ptr_cutest_unames_ = Libdl.dlsym(cutest_lib_double, :cutest_unames_) @ccall $ptr_cutest_unames_(status::Ptr{Cint}, n::Ptr{Cint}, pname::Ptr{Cchar}, vnames::Ptr{Cchar})::Cvoid end function cutest_ureport_(status, calls, time) - ptr_cutest_ureport_ = Libdl.dlsym(cutest_lib, :cutest_ureport_) + ptr_cutest_ureport_ = Libdl.dlsym(cutest_lib_double, :cutest_ureport_) @ccall $ptr_cutest_ureport_(status::Ptr{Cint}, calls::Ptr{Float64}, time::Ptr{Float64})::Cvoid end function cutest_cdimen_(status, funit, n, m) - ptr_cutest_cdimen_ = Libdl.dlsym(cutest_lib, :cutest_cdimen_) + ptr_cutest_cdimen_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimen_) @ccall $ptr_cutest_cdimen_(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint})::Cvoid end function cutest_cint_cnoobj_(status, funit, noobj) - ptr_cutest_cint_cnoobj_ = Libdl.dlsym(cutest_lib, :cutest_cint_cnoobj_) + ptr_cutest_cint_cnoobj_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cnoobj_) @ccall $ptr_cutest_cint_cnoobj_(status::Ptr{Cint}, funit::Ptr{Cint}, noobj::Ptr{Bool})::Cvoid end function cutest_cdimsg_(status, nnzg) - ptr_cutest_cdimsg_ = Libdl.dlsym(cutest_lib, :cutest_cdimsg_) + ptr_cutest_cdimsg_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimsg_) @ccall $ptr_cutest_cdimsg_(status::Ptr{Cint}, nnzg::Ptr{Cint})::Cvoid end function cutest_cdimsj_(status, nnzj) - ptr_cutest_cdimsj_ = Libdl.dlsym(cutest_lib, :cutest_cdimsj_) + ptr_cutest_cdimsj_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimsj_) @ccall $ptr_cutest_cdimsj_(status::Ptr{Cint}, nnzj::Ptr{Cint})::Cvoid end function cutest_cdimsh_(status, nnzh) - ptr_cutest_cdimsh_ = Libdl.dlsym(cutest_lib, :cutest_cdimsh_) + ptr_cutest_cdimsh_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimsh_) @ccall $ptr_cutest_cdimsh_(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid end function CUTEST_cdimcop(status, nnzohp) - ptr_CUTEST_cdimcop = Libdl.dlsym(cutest_lib, :CUTEST_cdimcop) + ptr_CUTEST_cdimcop = Libdl.dlsym(cutest_lib_double, :CUTEST_cdimcop) @ccall $ptr_CUTEST_cdimcop(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid end function cutest_cdimohp_(status, nnzohp) - ptr_cutest_cdimohp_ = Libdl.dlsym(cutest_lib, :cutest_cdimohp_) + ptr_cutest_cdimohp_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimohp_) @ccall $ptr_cutest_cdimohp_(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid end function cutest_cdimchp_(status, nnzchp) - ptr_cutest_cdimchp_ = Libdl.dlsym(cutest_lib, :cutest_cdimchp_) + ptr_cutest_cdimchp_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimchp_) @ccall $ptr_cutest_cdimchp_(status::Ptr{Cint}, nnzchp::Ptr{Cint})::Cvoid end function cutest_cdimse_(status, ne, nzh, nzirnh) - ptr_cutest_cdimse_ = Libdl.dlsym(cutest_lib, :cutest_cdimse_) + ptr_cutest_cdimse_ = Libdl.dlsym(cutest_lib_double, :cutest_cdimse_) @ccall $ptr_cutest_cdimse_(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, nzirnh::Ptr{Cint})::Cvoid end function cutest_cstats_(status, nonlinear_variables_objective, nonlinear_variables_constraints, equality_constraints, linear_constraints) - ptr_cutest_cstats_ = Libdl.dlsym(cutest_lib, :cutest_cstats_) + ptr_cutest_cstats_ = Libdl.dlsym(cutest_lib_double, :cutest_cstats_) @ccall $ptr_cutest_cstats_(status::Ptr{Cint}, nonlinear_variables_objective::Ptr{Cint}, nonlinear_variables_constraints::Ptr{Cint}, equality_constraints::Ptr{Cint}, linear_constraints::Ptr{Cint})::Cvoid end function cutest_cvartype_(status, n, ivarty) - ptr_cutest_cvartype_ = Libdl.dlsym(cutest_lib, :cutest_cvartype_) + ptr_cutest_cvartype_ = Libdl.dlsym(cutest_lib_double, :cutest_cvartype_) @ccall $ptr_cutest_cvartype_(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid end function cutest_cnames_(status, n, m, pname, vnames, gnames) - ptr_cutest_cnames_ = Libdl.dlsym(cutest_lib, :cutest_cnames_) + ptr_cutest_cnames_ = Libdl.dlsym(cutest_lib_double, :cutest_cnames_) @ccall $ptr_cutest_cnames_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, pname::Ptr{Cchar}, vnames::Ptr{Cchar}, gnames::Ptr{Cchar})::Cvoid end function cutest_creport_(status, calls, time) - ptr_cutest_creport_ = Libdl.dlsym(cutest_lib, :cutest_creport_) + ptr_cutest_creport_ = Libdl.dlsym(cutest_lib_double, :cutest_creport_) @ccall $ptr_cutest_creport_(status::Ptr{Cint}, calls::Ptr{Float64}, time::Ptr{Float64})::Cvoid end function cutest_connames_(status, m, gname) - ptr_cutest_connames_ = Libdl.dlsym(cutest_lib, :cutest_connames_) + ptr_cutest_connames_ = Libdl.dlsym(cutest_lib_double, :cutest_connames_) @ccall $ptr_cutest_connames_(status::Ptr{Cint}, m::Ptr{Cint}, gname::Ptr{Cchar})::Cvoid end function cutest_pname_(status, funit, pname) - ptr_cutest_pname_ = Libdl.dlsym(cutest_lib, :cutest_pname_) + ptr_cutest_pname_ = Libdl.dlsym(cutest_lib_double, :cutest_pname_) @ccall $ptr_cutest_pname_(status::Ptr{Cint}, funit::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid end function cutest_probname_(status, pname) - ptr_cutest_probname_ = Libdl.dlsym(cutest_lib, :cutest_probname_) + ptr_cutest_probname_ = Libdl.dlsym(cutest_lib_double, :cutest_probname_) @ccall $ptr_cutest_probname_(status::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid end function cutest_varnames_(status, n, vname) - ptr_cutest_varnames_ = Libdl.dlsym(cutest_lib, :cutest_varnames_) + ptr_cutest_varnames_ = Libdl.dlsym(cutest_lib_double, :cutest_varnames_) @ccall $ptr_cutest_varnames_(status::Ptr{Cint}, n::Ptr{Cint}, vname::Ptr{Cchar})::Cvoid end function cutest_ufn_(status, n, x, f) - ptr_cutest_ufn_ = Libdl.dlsym(cutest_lib, :cutest_ufn_) + ptr_cutest_ufn_ = Libdl.dlsym(cutest_lib_double, :cutest_ufn_) @ccall $ptr_cutest_ufn_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64})::Cvoid end function cutest_ugr_(status, n, x, g) - ptr_cutest_ugr_ = Libdl.dlsym(cutest_lib, :cutest_ugr_) + ptr_cutest_ugr_ = Libdl.dlsym(cutest_lib_double, :cutest_ugr_) @ccall $ptr_cutest_ugr_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, g::Ptr{Float64})::Cvoid end function cutest_cint_uofg_(status, n, x, f, g, grad) - ptr_cutest_cint_uofg_ = Libdl.dlsym(cutest_lib, :cutest_cint_uofg_) + ptr_cutest_cint_uofg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_uofg_) @ccall $ptr_cutest_cint_uofg_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64}, g::Ptr{Float64}, grad::Ptr{Bool})::Cvoid end function cutest_udh_(status, n, x, lh1, h) - ptr_cutest_udh_ = Libdl.dlsym(cutest_lib, :cutest_udh_) + ptr_cutest_udh_ = Libdl.dlsym(cutest_lib_double, :cutest_udh_) @ccall $ptr_cutest_udh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_ushp_(status, n, nnzh, lh, irnh, icnh) - ptr_cutest_ushp_ = Libdl.dlsym(cutest_lib, :cutest_ushp_) + ptr_cutest_ushp_ = Libdl.dlsym(cutest_lib_double, :cutest_ushp_) @ccall $ptr_cutest_ushp_(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_ush_(status, n, x, nnzh, lh, h, irnh, icnh) - ptr_cutest_ush_ = Libdl.dlsym(cutest_lib, :cutest_ush_) + ptr_cutest_ush_ = Libdl.dlsym(cutest_lib_double, :cutest_ush_) @ccall $ptr_cutest_ush_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cint_ueh_(status, n, x, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ueh_ = Libdl.dlsym(cutest_lib, :cutest_cint_ueh_) + ptr_cutest_cint_ueh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ueh_) @ccall $ptr_cutest_cint_ueh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, lhi::Ptr{Cint}, @@ -216,20 +216,20 @@ function cutest_cint_ueh_(status, n, x, ne, le, iprnhi, iprhi, lirnhi, irnhi, lh end function cutest_ugrdh_(status, n, x, g, lh1, h) - ptr_cutest_ugrdh_ = Libdl.dlsym(cutest_lib, :cutest_ugrdh_) + ptr_cutest_ugrdh_ = Libdl.dlsym(cutest_lib_double, :cutest_ugrdh_) @ccall $ptr_cutest_ugrdh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, g::Ptr{Float64}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_ugrsh_(status, n, x, g, nnzh, lh, h, irnh, icnh) - ptr_cutest_ugrsh_ = Libdl.dlsym(cutest_lib, :cutest_ugrsh_) + ptr_cutest_ugrsh_ = Libdl.dlsym(cutest_lib_double, :cutest_ugrsh_) @ccall $ptr_cutest_ugrsh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, g::Ptr{Float64}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cint_ugreh_(status, n, x, g, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ugreh_ = Libdl.dlsym(cutest_lib, :cutest_cint_ugreh_) + ptr_cutest_cint_ugreh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ugreh_) @ccall $ptr_cutest_cint_ugreh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, g::Ptr{Float64}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, lhi::Ptr{Cint}, @@ -237,13 +237,13 @@ function cutest_cint_ugreh_(status, n, x, g, ne, le, iprnhi, iprhi, lirnhi, irnh end function cutest_cint_uhprod_(status, n, goth, x, p, r) - ptr_cutest_cint_uhprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_uhprod_) + ptr_cutest_cint_uhprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_uhprod_) @ccall $ptr_cutest_cint_uhprod_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, p::Ptr{Float64}, r::Ptr{Float64})::Cvoid end function cutest_cint_ushprod_(status, n, goth, x, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_ushprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_ushprod_) + ptr_cutest_cint_ushprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ushprod_) @ccall $ptr_cutest_cint_ushprod_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float64}, nnzr::Ptr{Cint}, indr::Ptr{Cint}, @@ -251,51 +251,51 @@ function cutest_cint_ushprod_(status, n, goth, x, nnzp, indp, p, nnzr, indr, r) end function cutest_ubandh_(status, n, x, nsemib, bandh, lbandh, maxsbw) - ptr_cutest_ubandh_ = Libdl.dlsym(cutest_lib, :cutest_ubandh_) + ptr_cutest_ubandh_ = Libdl.dlsym(cutest_lib_double, :cutest_ubandh_) @ccall $ptr_cutest_ubandh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, nsemib::Ptr{Cint}, bandh::Ptr{Float64}, lbandh::Ptr{Cint}, maxsbw::Ptr{Cint})::Cvoid end function cutest_cfn_(status, n, m, x, f, c) - ptr_cutest_cfn_ = Libdl.dlsym(cutest_lib, :cutest_cfn_) + ptr_cutest_cfn_ = Libdl.dlsym(cutest_lib_double, :cutest_cfn_) @ccall $ptr_cutest_cfn_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64}, c::Ptr{Float64})::Cvoid end function CUTEST_cconst(status, m, c) - ptr_CUTEST_cconst = Libdl.dlsym(cutest_lib, :CUTEST_cconst) + ptr_CUTEST_cconst = Libdl.dlsym(cutest_lib_double, :CUTEST_cconst) @ccall $ptr_CUTEST_cconst(status::Ptr{Cint}, m::Ptr{Cint}, c::Ptr{Float64})::Cvoid end function cutest_cint_cofg_(status, n, x, f, g, grad) - ptr_cutest_cint_cofg_ = Libdl.dlsym(cutest_lib, :cutest_cint_cofg_) + ptr_cutest_cint_cofg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cofg_) @ccall $ptr_cutest_cint_cofg_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64}, g::Ptr{Float64}, grad::Ptr{Bool})::Cvoid end function cutest_cint_cofsg_(status, n, x, f, nnzg, lg, sg, ivsg, grad) - ptr_cutest_cint_cofsg_ = Libdl.dlsym(cutest_lib, :cutest_cint_cofsg_) + ptr_cutest_cint_cofsg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cofsg_) @ccall $ptr_cutest_cint_cofsg_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, sg::Ptr{Float64}, ivsg::Ptr{Cint}, grad::Ptr{Bool})::Cvoid end function cutest_cint_ccfg_(status, n, m, x, c, jtrans, lcjac1, lcjac2, cjac, grad) - ptr_cutest_cint_ccfg_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccfg_) + ptr_cutest_cint_ccfg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ccfg_) @ccall $ptr_cutest_cint_ccfg_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, c::Ptr{Float64}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, cjac::Ptr{Float64}, grad::Ptr{Bool})::Cvoid end function cutest_cint_clfg_(status, n, m, x, y, f, g, grad) - ptr_cutest_cint_clfg_ = Libdl.dlsym(cutest_lib, :cutest_cint_clfg_) + ptr_cutest_cint_clfg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_clfg_) @ccall $ptr_cutest_cint_clfg_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, f::Ptr{Float64}, g::Ptr{Float64}, grad::Ptr{Bool})::Cvoid end function cutest_cint_cgr_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac2, cjac) - ptr_cutest_cint_cgr_ = Libdl.dlsym(cutest_lib, :cutest_cint_cgr_) + ptr_cutest_cint_cgr_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cgr_) @ccall $ptr_cutest_cint_cgr_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, grlagf::Ptr{Bool}, g::Ptr{Float64}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, @@ -303,7 +303,7 @@ function cutest_cint_cgr_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac2, end function cutest_cint_csgr_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun) - ptr_cutest_cint_csgr_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgr_) + ptr_cutest_cint_csgr_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_csgr_) @ccall $ptr_cutest_cint_csgr_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float64}, indvar::Ptr{Cint}, @@ -311,19 +311,19 @@ function cutest_cint_csgr_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar end function cutest_csgrp_(status, n, nnzj, lj, jvar, jcon) - ptr_cutest_csgrp_ = Libdl.dlsym(cutest_lib, :cutest_csgrp_) + ptr_cutest_csgrp_ = Libdl.dlsym(cutest_lib_double, :cutest_csgrp_) @ccall $ptr_cutest_csgrp_(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, jvar::Ptr{Cint}, jcon::Ptr{Cint})::Cvoid end function cutest_csjp_(status, nnzj, lj, jvar, jcon) - ptr_cutest_csjp_ = Libdl.dlsym(cutest_lib, :cutest_csjp_) + ptr_cutest_csjp_ = Libdl.dlsym(cutest_lib_double, :cutest_csjp_) @ccall $ptr_cutest_csjp_(status::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, jvar::Ptr{Cint}, jcon::Ptr{Cint})::Cvoid end function cutest_cint_ccfsg_(status, n, m, x, c, nnzj, lcjac, cjac, indvar, indfun, grad) - ptr_cutest_cint_ccfsg_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccfsg_) + ptr_cutest_cint_ccfsg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ccfsg_) @ccall $ptr_cutest_cint_ccfsg_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, c::Ptr{Float64}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float64}, indvar::Ptr{Cint}, indfun::Ptr{Cint}, @@ -331,20 +331,20 @@ function cutest_cint_ccfsg_(status, n, m, x, c, nnzj, lcjac, cjac, indvar, indfu end function cutest_cint_ccifg_(status, n, icon, x, ci, gci, grad) - ptr_cutest_cint_ccifg_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccifg_) + ptr_cutest_cint_ccifg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ccifg_) @ccall $ptr_cutest_cint_ccifg_(status::Ptr{Cint}, n::Ptr{Cint}, icon::Ptr{Cint}, x::Ptr{Float64}, ci::Ptr{Float64}, gci::Ptr{Float64}, grad::Ptr{Bool})::Cvoid end function cutest_cint_ccifsg_(status, n, con, x, ci, nnzsgc, lsgci, sgci, ivsgci, grad) - ptr_cutest_cint_ccifsg_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccifsg_) + ptr_cutest_cint_ccifsg_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ccifsg_) @ccall $ptr_cutest_cint_ccifsg_(status::Ptr{Cint}, n::Ptr{Cint}, con::Ptr{Cint}, x::Ptr{Float64}, ci::Ptr{Float64}, nnzsgc::Ptr{Cint}, lsgci::Ptr{Cint}, sgci::Ptr{Float64}, ivsgci::Ptr{Cint}, grad::Ptr{Bool})::Cvoid end function cutest_cint_cgrdh_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac2, cjac, lh1, h) - ptr_cutest_cint_cgrdh_ = Libdl.dlsym(cutest_lib, :cutest_cint_cgrdh_) + ptr_cutest_cint_cgrdh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cgrdh_) @ccall $ptr_cutest_cint_cgrdh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, grlagf::Ptr{Bool}, g::Ptr{Float64}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, @@ -352,53 +352,53 @@ function cutest_cint_cgrdh_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac end function cutest_cdh_(status, n, m, x, y, lh1, h) - ptr_cutest_cdh_ = Libdl.dlsym(cutest_lib, :cutest_cdh_) + ptr_cutest_cdh_ = Libdl.dlsym(cutest_lib_double, :cutest_cdh_) @ccall $ptr_cutest_cdh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_cdhc_(status, n, m, x, y, lh1, h) - ptr_cutest_cdhc_ = Libdl.dlsym(cutest_lib, :cutest_cdhc_) + ptr_cutest_cdhc_ = Libdl.dlsym(cutest_lib_double, :cutest_cdhc_) @ccall $ptr_cutest_cdhc_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_cdhj_(status, n, m, x, y0, y, lh1, h) - ptr_cutest_cdhj_ = Libdl.dlsym(cutest_lib, :cutest_cdhj_) + ptr_cutest_cdhj_ = Libdl.dlsym(cutest_lib_double, :cutest_cdhj_) @ccall $ptr_cutest_cdhj_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y0::Ptr{Float64}, y::Ptr{Float64}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_cshp_(status, n, nnzh, lh, irnh, icnh) - ptr_cutest_cshp_ = Libdl.dlsym(cutest_lib, :cutest_cshp_) + ptr_cutest_cshp_ = Libdl.dlsym(cutest_lib_double, :cutest_cshp_) @ccall $ptr_cutest_cshp_(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_csh_(status, n, m, x, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_csh_ = Libdl.dlsym(cutest_lib, :cutest_csh_) + ptr_cutest_csh_ = Libdl.dlsym(cutest_lib_double, :cutest_csh_) @ccall $ptr_cutest_csh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cshc_(status, n, m, x, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_cshc_ = Libdl.dlsym(cutest_lib, :cutest_cshc_) + ptr_cutest_cshc_ = Libdl.dlsym(cutest_lib_double, :cutest_cshc_) @ccall $ptr_cutest_cshc_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cshj_(status, n, m, x, y0, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_cshj_ = Libdl.dlsym(cutest_lib, :cutest_cshj_) + ptr_cutest_cshj_ = Libdl.dlsym(cutest_lib_double, :cutest_cshj_) @ccall $ptr_cutest_cshj_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y0::Ptr{Float64}, y::Ptr{Float64}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cint_ceh_(status, n, m, x, y, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ceh_ = Libdl.dlsym(cutest_lib, :cutest_cint_ceh_) + ptr_cutest_cint_ceh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_ceh_) @ccall $ptr_cutest_cint_ceh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, @@ -406,38 +406,38 @@ function cutest_cint_ceh_(status, n, m, x, y, ne, le, iprnhi, iprhi, lirnhi, irn end function cutest_cifn_(status, n, iprob, x, f) - ptr_cutest_cifn_ = Libdl.dlsym(cutest_lib, :cutest_cifn_) + ptr_cutest_cifn_ = Libdl.dlsym(cutest_lib_double, :cutest_cifn_) @ccall $ptr_cutest_cifn_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float64}, f::Ptr{Float64})::Cvoid end function cutest_cigr_(status, n, iprob, x, g) - ptr_cutest_cigr_ = Libdl.dlsym(cutest_lib, :cutest_cigr_) + ptr_cutest_cigr_ = Libdl.dlsym(cutest_lib_double, :cutest_cigr_) @ccall $ptr_cutest_cigr_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float64}, g::Ptr{Float64})::Cvoid end function cutest_cisgr_(status, n, iprob, x, nnzg, lg, sg, ivsg) - ptr_cutest_cisgr_ = Libdl.dlsym(cutest_lib, :cutest_cisgr_) + ptr_cutest_cisgr_ = Libdl.dlsym(cutest_lib_double, :cutest_cisgr_) @ccall $ptr_cutest_cisgr_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float64}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, sg::Ptr{Float64}, ivsg::Ptr{Cint})::Cvoid end function cutest_cisgrp_(status, n, iprob, nnzg, lg, ivsg) - ptr_cutest_cisgrp_ = Libdl.dlsym(cutest_lib, :cutest_cisgrp_) + ptr_cutest_cisgrp_ = Libdl.dlsym(cutest_lib_double, :cutest_cisgrp_) @ccall $ptr_cutest_cisgrp_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, ivsg::Ptr{Cint})::Cvoid end function cutest_cidh_(status, n, x, iprob, lh1, h) - ptr_cutest_cidh_ = Libdl.dlsym(cutest_lib, :cutest_cidh_) + ptr_cutest_cidh_ = Libdl.dlsym(cutest_lib_double, :cutest_cidh_) @ccall $ptr_cutest_cidh_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, iprob::Ptr{Cint}, lh1::Ptr{Cint}, h::Ptr{Float64})::Cvoid end function cutest_cish_(status, n, x, iprob, nnzh, lh, h, irnh, icnh) - ptr_cutest_cish_ = Libdl.dlsym(cutest_lib, :cutest_cish_) + ptr_cutest_cish_ = Libdl.dlsym(cutest_lib_double, :cutest_cish_) @ccall $ptr_cutest_cish_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float64}, iprob::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float64}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -445,7 +445,7 @@ end function cutest_cint_csgrsh_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun, nnzh, lh, h, irnh, icnh) - ptr_cutest_cint_csgrsh_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgrsh_) + ptr_cutest_cint_csgrsh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_csgrsh_) @ccall $ptr_cutest_cint_csgrsh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float64}, indvar::Ptr{Cint}, @@ -454,7 +454,7 @@ function cutest_cint_csgrsh_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indv end function cutest_csgrshp_(status, n, nnzj, lcjac, indvar, indfun, nnzh, lh, irnh, icnh) - ptr_cutest_csgrshp_ = Libdl.dlsym(cutest_lib, :cutest_csgrshp_) + ptr_cutest_csgrshp_ = Libdl.dlsym(cutest_lib_double, :cutest_csgrshp_) @ccall $ptr_cutest_csgrshp_(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, indvar::Ptr{Cint}, indfun::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -462,7 +462,7 @@ end function cutest_cint_csgreh_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_csgreh_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgreh_) + ptr_cutest_cint_csgreh_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_csgreh_) @ccall $ptr_cutest_cint_csgreh_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float64}, y::Ptr{Float64}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float64}, indvar::Ptr{Cint}, @@ -473,14 +473,14 @@ function cutest_cint_csgreh_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indv end function cutest_cint_chprod_(status, n, m, goth, x, y, p, q) - ptr_cutest_cint_chprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_chprod_) + ptr_cutest_cint_chprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_chprod_) @ccall $ptr_cutest_cint_chprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, y::Ptr{Float64}, p::Ptr{Float64}, q::Ptr{Float64})::Cvoid end function cutest_cint_chsprod_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_chsprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_chsprod_) + ptr_cutest_cint_chsprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_chsprod_) @ccall $ptr_cutest_cint_chsprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, y::Ptr{Float64}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float64}, nnzr::Ptr{Cint}, @@ -488,14 +488,14 @@ function cutest_cint_chsprod_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, ind end function cutest_cint_chcprod_(status, n, m, goth, x, y, p, q) - ptr_cutest_cint_chcprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_chcprod_) + ptr_cutest_cint_chcprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_chcprod_) @ccall $ptr_cutest_cint_chcprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, y::Ptr{Float64}, p::Ptr{Float64}, q::Ptr{Float64})::Cvoid end function cutest_cint_cshcprod_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_cshcprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_cshcprod_) + ptr_cutest_cint_cshcprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cshcprod_) @ccall $ptr_cutest_cint_cshcprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, y::Ptr{Float64}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float64}, nnzr::Ptr{Cint}, @@ -503,21 +503,21 @@ function cutest_cint_cshcprod_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, in end function cutest_cint_chjprod_(status, n, m, goth, x, y0, y, p, q) - ptr_cutest_cint_chjprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_chjprod_) + ptr_cutest_cint_chjprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_chjprod_) @ccall $ptr_cutest_cint_chjprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, y0::Ptr{Float64}, y::Ptr{Float64}, p::Ptr{Float64}, q::Ptr{Float64})::Cvoid end function cutest_cint_cjprod_(status, n, m, gotj, jtrans, x, p, lp, r, lr) - ptr_cutest_cint_cjprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_cjprod_) + ptr_cutest_cint_cjprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cjprod_) @ccall $ptr_cutest_cint_cjprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, gotj::Ptr{Bool}, jtrans::Ptr{Bool}, x::Ptr{Float64}, p::Ptr{Float64}, lp::Ptr{Cint}, r::Ptr{Float64}, lr::Ptr{Cint})::Cvoid end function cutest_cint_csjprod_(status, n, m, gotj, jtrans, x, nnzp, indp, p, lp, nnzr, indr, r, lr) - ptr_cutest_cint_csjprod_ = Libdl.dlsym(cutest_lib, :cutest_cint_csjprod_) + ptr_cutest_cint_csjprod_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_csjprod_) @ccall $ptr_cutest_cint_csjprod_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, gotj::Ptr{Bool}, jtrans::Ptr{Bool}, x::Ptr{Float64}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float64}, lp::Ptr{Cint}, nnzr::Ptr{Cint}, @@ -525,7 +525,7 @@ function cutest_cint_csjprod_(status, n, m, gotj, jtrans, x, nnzp, indp, p, lp, end function cutest_cint_cchprods_(status, n, m, goth, x, p, lchp, chpval, chpind, chpptr) - ptr_cutest_cint_cchprods_ = Libdl.dlsym(cutest_lib, :cutest_cint_cchprods_) + ptr_cutest_cint_cchprods_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cchprods_) @ccall $ptr_cutest_cint_cchprods_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, p::Ptr{Float64}, lchp::Ptr{Cint}, chpval::Ptr{Float64}, chpind::Ptr{Cint}, @@ -533,36 +533,36 @@ function cutest_cint_cchprods_(status, n, m, goth, x, p, lchp, chpval, chpind, c end function cutest_cchprodsp_(status, m, lchp, chpind, chpptr) - ptr_cutest_cchprodsp_ = Libdl.dlsym(cutest_lib, :cutest_cchprodsp_) + ptr_cutest_cchprodsp_ = Libdl.dlsym(cutest_lib_double, :cutest_cchprodsp_) @ccall $ptr_cutest_cchprodsp_(status::Ptr{Cint}, m::Ptr{Cint}, lchp::Ptr{Cint}, chpind::Ptr{Cint}, chpptr::Ptr{Cint})::Cvoid end function cutest_cint_cohprods_(status, n, goth, x, p, nnzohp, lohp, ohpval, ohpind) - ptr_cutest_cint_cohprods_ = Libdl.dlsym(cutest_lib, :cutest_cint_cohprods_) + ptr_cutest_cint_cohprods_ = Libdl.dlsym(cutest_lib_double, :cutest_cint_cohprods_) @ccall $ptr_cutest_cint_cohprods_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float64}, p::Ptr{Float64}, nnzohp::Ptr{Cint}, lohp::Ptr{Cint}, ohpval::Ptr{Float64}, ohpind::Ptr{Cint})::Cvoid end function cutest_cohprodsp_(status, nnzohp, lohp, chpind) - ptr_cutest_cohprodsp_ = Libdl.dlsym(cutest_lib, :cutest_cohprodsp_) + ptr_cutest_cohprodsp_ = Libdl.dlsym(cutest_lib_double, :cutest_cohprodsp_) @ccall $ptr_cutest_cohprodsp_(status::Ptr{Cint}, nnzohp::Ptr{Cint}, lohp::Ptr{Cint}, chpind::Ptr{Cint})::Cvoid end function cutest_uterminate_(status) - ptr_cutest_uterminate_ = Libdl.dlsym(cutest_lib, :cutest_uterminate_) + ptr_cutest_uterminate_ = Libdl.dlsym(cutest_lib_double, :cutest_uterminate_) @ccall $ptr_cutest_uterminate_(status::Ptr{Cint})::Cvoid end function cutest_cterminate_(status) - ptr_cutest_cterminate_ = Libdl.dlsym(cutest_lib, :cutest_cterminate_) + ptr_cutest_cterminate_ = Libdl.dlsym(cutest_lib_double, :cutest_cterminate_) @ccall $ptr_cutest_cterminate_(status::Ptr{Cint})::Cvoid end function cutest_usetup_s_(status, funit, iout, io_buffer, n, x, bl, bu) - ptr_cutest_usetup_s_ = Libdl.dlsym(cutest_lib, :cutest_usetup_s_) + ptr_cutest_usetup_s_ = Libdl.dlsym(cutest_lib_single, :cutest_usetup_s_) @ccall $ptr_cutest_usetup_s_(status::Ptr{Cint}, funit::Ptr{Cint}, iout::Ptr{Cint}, io_buffer::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, bl::Ptr{Float32}, bu::Ptr{Float32})::Cvoid @@ -570,7 +570,7 @@ end function cutest_cint_csetup_s_(status, funit, iout, io_buffer, n, m, x, bl, bu, v, cl, cu, equatn, linear, e_order, l_order, v_order) - ptr_cutest_cint_csetup_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_csetup_s_) + ptr_cutest_cint_csetup_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_csetup_s_) @ccall $ptr_cutest_cint_csetup_s_(status::Ptr{Cint}, funit::Ptr{Cint}, iout::Ptr{Cint}, io_buffer::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, bl::Ptr{Float32}, bu::Ptr{Float32}, @@ -580,87 +580,87 @@ function cutest_cint_csetup_s_(status, funit, iout, io_buffer, n, m, x, bl, bu, end function cutest_udimen_s_(status, funit, n) - ptr_cutest_udimen_s_ = Libdl.dlsym(cutest_lib, :cutest_udimen_s_) + ptr_cutest_udimen_s_ = Libdl.dlsym(cutest_lib_single, :cutest_udimen_s_) @ccall $ptr_cutest_udimen_s_(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint})::Cvoid end function cutest_udimsh_s_(status, nnzh) - ptr_cutest_udimsh_s_ = Libdl.dlsym(cutest_lib, :cutest_udimsh_s_) + ptr_cutest_udimsh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_udimsh_s_) @ccall $ptr_cutest_udimsh_s_(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid end function cutest_udimse_s_(status, ne, nzh, nzirnh) - ptr_cutest_udimse_s_ = Libdl.dlsym(cutest_lib, :cutest_udimse_s_) + ptr_cutest_udimse_s_ = Libdl.dlsym(cutest_lib_single, :cutest_udimse_s_) @ccall $ptr_cutest_udimse_s_(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, nzirnh::Ptr{Cint})::Cvoid end function cutest_uvartype_s_(status, n, ivarty) - ptr_cutest_uvartype_s_ = Libdl.dlsym(cutest_lib, :cutest_uvartype_s_) + ptr_cutest_uvartype_s_ = Libdl.dlsym(cutest_lib_single, :cutest_uvartype_s_) @ccall $ptr_cutest_uvartype_s_(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid end function cutest_unames_s_(status, n, pname, vnames) - ptr_cutest_unames_s_ = Libdl.dlsym(cutest_lib, :cutest_unames_s_) + ptr_cutest_unames_s_ = Libdl.dlsym(cutest_lib_single, :cutest_unames_s_) @ccall $ptr_cutest_unames_s_(status::Ptr{Cint}, n::Ptr{Cint}, pname::Ptr{Cchar}, vnames::Ptr{Cchar})::Cvoid end function cutest_ureport_s_(status, calls, time) - ptr_cutest_ureport_s_ = Libdl.dlsym(cutest_lib, :cutest_ureport_s_) + ptr_cutest_ureport_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ureport_s_) @ccall $ptr_cutest_ureport_s_(status::Ptr{Cint}, calls::Ptr{Float32}, time::Ptr{Float32})::Cvoid end function cutest_cdimen_s_(status, funit, n, m) - ptr_cutest_cdimen_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimen_s_) + ptr_cutest_cdimen_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimen_s_) @ccall $ptr_cutest_cdimen_s_(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint})::Cvoid end function cutest_cint_cnoobj_s_(status, funit, noobj) - ptr_cutest_cint_cnoobj_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cnoobj_s_) + ptr_cutest_cint_cnoobj_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cnoobj_s_) @ccall $ptr_cutest_cint_cnoobj_s_(status::Ptr{Cint}, funit::Ptr{Cint}, noobj::Ptr{Bool})::Cvoid end function cutest_cdimsg_s_(status, nnzg) - ptr_cutest_cdimsg_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimsg_s_) + ptr_cutest_cdimsg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimsg_s_) @ccall $ptr_cutest_cdimsg_s_(status::Ptr{Cint}, nnzg::Ptr{Cint})::Cvoid end function cutest_cdimsj_s_(status, nnzj) - ptr_cutest_cdimsj_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimsj_s_) + ptr_cutest_cdimsj_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimsj_s_) @ccall $ptr_cutest_cdimsj_s_(status::Ptr{Cint}, nnzj::Ptr{Cint})::Cvoid end function cutest_cdimsh_s_(status, nnzh) - ptr_cutest_cdimsh_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimsh_s_) + ptr_cutest_cdimsh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimsh_s_) @ccall $ptr_cutest_cdimsh_s_(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid end function CUTEST_cdimcop_s(status, nnzohp) - ptr_CUTEST_cdimcop_s = Libdl.dlsym(cutest_lib, :CUTEST_cdimcop_s) + ptr_CUTEST_cdimcop_s = Libdl.dlsym(cutest_lib_single, :CUTEST_cdimcop_s) @ccall $ptr_CUTEST_cdimcop_s(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid end function cutest_cdimohp_s_(status, nnzohp) - ptr_cutest_cdimohp_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimohp_s_) + ptr_cutest_cdimohp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimohp_s_) @ccall $ptr_cutest_cdimohp_s_(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid end function cutest_cdimchp_s_(status, nnzchp) - ptr_cutest_cdimchp_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimchp_s_) + ptr_cutest_cdimchp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimchp_s_) @ccall $ptr_cutest_cdimchp_s_(status::Ptr{Cint}, nnzchp::Ptr{Cint})::Cvoid end function cutest_cdimse_s_(status, ne, nzh, nzirnh) - ptr_cutest_cdimse_s_ = Libdl.dlsym(cutest_lib, :cutest_cdimse_s_) + ptr_cutest_cdimse_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdimse_s_) @ccall $ptr_cutest_cdimse_s_(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, nzirnh::Ptr{Cint})::Cvoid end function cutest_cstats_s_(status, nonlinear_variables_objective, nonlinear_variables_constraints, equality_constraints, linear_constraints) - ptr_cutest_cstats_s_ = Libdl.dlsym(cutest_lib, :cutest_cstats_s_) + ptr_cutest_cstats_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cstats_s_) @ccall $ptr_cutest_cstats_s_(status::Ptr{Cint}, nonlinear_variables_objective::Ptr{Cint}, nonlinear_variables_constraints::Ptr{Cint}, equality_constraints::Ptr{Cint}, @@ -668,79 +668,79 @@ function cutest_cstats_s_(status, nonlinear_variables_objective, nonlinear_varia end function cutest_cvartype_s_(status, n, ivarty) - ptr_cutest_cvartype_s_ = Libdl.dlsym(cutest_lib, :cutest_cvartype_s_) + ptr_cutest_cvartype_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cvartype_s_) @ccall $ptr_cutest_cvartype_s_(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid end function cutest_cnames_s_(status, n, m, pname, vnames, gnames) - ptr_cutest_cnames_s_ = Libdl.dlsym(cutest_lib, :cutest_cnames_s_) + ptr_cutest_cnames_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cnames_s_) @ccall $ptr_cutest_cnames_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, pname::Ptr{Cchar}, vnames::Ptr{Cchar}, gnames::Ptr{Cchar})::Cvoid end function cutest_creport_s_(status, calls, time) - ptr_cutest_creport_s_ = Libdl.dlsym(cutest_lib, :cutest_creport_s_) + ptr_cutest_creport_s_ = Libdl.dlsym(cutest_lib_single, :cutest_creport_s_) @ccall $ptr_cutest_creport_s_(status::Ptr{Cint}, calls::Ptr{Float32}, time::Ptr{Float32})::Cvoid end function cutest_connames_s_(status, m, gname) - ptr_cutest_connames_s_ = Libdl.dlsym(cutest_lib, :cutest_connames_s_) + ptr_cutest_connames_s_ = Libdl.dlsym(cutest_lib_single, :cutest_connames_s_) @ccall $ptr_cutest_connames_s_(status::Ptr{Cint}, m::Ptr{Cint}, gname::Ptr{Cchar})::Cvoid end function cutest_pname_s_(status, funit, pname) - ptr_cutest_pname_s_ = Libdl.dlsym(cutest_lib, :cutest_pname_s_) + ptr_cutest_pname_s_ = Libdl.dlsym(cutest_lib_single, :cutest_pname_s_) @ccall $ptr_cutest_pname_s_(status::Ptr{Cint}, funit::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid end function cutest_probname_s_(status, pname) - ptr_cutest_probname_s_ = Libdl.dlsym(cutest_lib, :cutest_probname_s_) + ptr_cutest_probname_s_ = Libdl.dlsym(cutest_lib_single, :cutest_probname_s_) @ccall $ptr_cutest_probname_s_(status::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid end function cutest_varnames_s_(status, n, vname) - ptr_cutest_varnames_s_ = Libdl.dlsym(cutest_lib, :cutest_varnames_s_) + ptr_cutest_varnames_s_ = Libdl.dlsym(cutest_lib_single, :cutest_varnames_s_) @ccall $ptr_cutest_varnames_s_(status::Ptr{Cint}, n::Ptr{Cint}, vname::Ptr{Cchar})::Cvoid end function cutest_ufn_s_(status, n, x, f) - ptr_cutest_ufn_s_ = Libdl.dlsym(cutest_lib, :cutest_ufn_s_) + ptr_cutest_ufn_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ufn_s_) @ccall $ptr_cutest_ufn_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32})::Cvoid end function cutest_ugr_s_(status, n, x, g) - ptr_cutest_ugr_s_ = Libdl.dlsym(cutest_lib, :cutest_ugr_s_) + ptr_cutest_ugr_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ugr_s_) @ccall $ptr_cutest_ugr_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, g::Ptr{Float32})::Cvoid end function cutest_cint_uofg_s_(status, n, x, f, g, grad) - ptr_cutest_cint_uofg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_uofg_s_) + ptr_cutest_cint_uofg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_uofg_s_) @ccall $ptr_cutest_cint_uofg_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32}, g::Ptr{Float32}, grad::Ptr{Bool})::Cvoid end function cutest_udh_s_(status, n, x, lh1, h) - ptr_cutest_udh_s_ = Libdl.dlsym(cutest_lib, :cutest_udh_s_) + ptr_cutest_udh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_udh_s_) @ccall $ptr_cutest_udh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_ushp_s_(status, n, nnzh, lh, irnh, icnh) - ptr_cutest_ushp_s_ = Libdl.dlsym(cutest_lib, :cutest_ushp_s_) + ptr_cutest_ushp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ushp_s_) @ccall $ptr_cutest_ushp_s_(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_ush_s_(status, n, x, nnzh, lh, h, irnh, icnh) - ptr_cutest_ush_s_ = Libdl.dlsym(cutest_lib, :cutest_ush_s_) + ptr_cutest_ush_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ush_s_) @ccall $ptr_cutest_ush_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cint_ueh_s_(status, n, x, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ueh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ueh_s_) + ptr_cutest_cint_ueh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ueh_s_) @ccall $ptr_cutest_cint_ueh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, lhi::Ptr{Cint}, @@ -748,13 +748,13 @@ function cutest_cint_ueh_s_(status, n, x, ne, le, iprnhi, iprhi, lirnhi, irnhi, end function cutest_ugrdh_s_(status, n, x, g, lh1, h) - ptr_cutest_ugrdh_s_ = Libdl.dlsym(cutest_lib, :cutest_ugrdh_s_) + ptr_cutest_ugrdh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ugrdh_s_) @ccall $ptr_cutest_ugrdh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, g::Ptr{Float32}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_ugrsh_s_(status, n, x, g, nnzh, lh, h, irnh, icnh) - ptr_cutest_ugrsh_s_ = Libdl.dlsym(cutest_lib, :cutest_ugrsh_s_) + ptr_cutest_ugrsh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ugrsh_s_) @ccall $ptr_cutest_ugrsh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, g::Ptr{Float32}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -762,7 +762,7 @@ end function cutest_cint_ugreh_s_(status, n, x, g, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ugreh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ugreh_s_) + ptr_cutest_cint_ugreh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ugreh_s_) @ccall $ptr_cutest_cint_ugreh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, g::Ptr{Float32}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, @@ -770,13 +770,13 @@ function cutest_cint_ugreh_s_(status, n, x, g, ne, le, iprnhi, iprhi, lirnhi, ir end function cutest_cint_uhprod_s_(status, n, goth, x, p, r) - ptr_cutest_cint_uhprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_uhprod_s_) + ptr_cutest_cint_uhprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_uhprod_s_) @ccall $ptr_cutest_cint_uhprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, p::Ptr{Float32}, r::Ptr{Float32})::Cvoid end function cutest_cint_ushprod_s_(status, n, goth, x, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_ushprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ushprod_s_) + ptr_cutest_cint_ushprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ushprod_s_) @ccall $ptr_cutest_cint_ushprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float32}, nnzr::Ptr{Cint}, indr::Ptr{Cint}, @@ -784,51 +784,51 @@ function cutest_cint_ushprod_s_(status, n, goth, x, nnzp, indp, p, nnzr, indr, r end function cutest_ubandh_s_(status, n, x, nsemib, bandh, lbandh, maxsbw) - ptr_cutest_ubandh_s_ = Libdl.dlsym(cutest_lib, :cutest_ubandh_s_) + ptr_cutest_ubandh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_ubandh_s_) @ccall $ptr_cutest_ubandh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, nsemib::Ptr{Cint}, bandh::Ptr{Float32}, lbandh::Ptr{Cint}, maxsbw::Ptr{Cint})::Cvoid end function cutest_cfn_s_(status, n, m, x, f, c) - ptr_cutest_cfn_s_ = Libdl.dlsym(cutest_lib, :cutest_cfn_s_) + ptr_cutest_cfn_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cfn_s_) @ccall $ptr_cutest_cfn_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32}, c::Ptr{Float32})::Cvoid end function CUTEST_cconst_s(status, m, c) - ptr_CUTEST_cconst_s = Libdl.dlsym(cutest_lib, :CUTEST_cconst_s) + ptr_CUTEST_cconst_s = Libdl.dlsym(cutest_lib_single, :CUTEST_cconst_s) @ccall $ptr_CUTEST_cconst_s(status::Ptr{Cint}, m::Ptr{Cint}, c::Ptr{Float32})::Cvoid end function cutest_cint_cofg_s_(status, n, x, f, g, grad) - ptr_cutest_cint_cofg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cofg_s_) + ptr_cutest_cint_cofg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cofg_s_) @ccall $ptr_cutest_cint_cofg_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32}, g::Ptr{Float32}, grad::Ptr{Bool})::Cvoid end function cutest_cint_cofsg_s_(status, n, x, f, nnzg, lg, sg, ivsg, grad) - ptr_cutest_cint_cofsg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cofsg_s_) + ptr_cutest_cint_cofsg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cofsg_s_) @ccall $ptr_cutest_cint_cofsg_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, sg::Ptr{Float32}, ivsg::Ptr{Cint}, grad::Ptr{Bool})::Cvoid end function cutest_cint_ccfg_s_(status, n, m, x, c, jtrans, lcjac1, lcjac2, cjac, grad) - ptr_cutest_cint_ccfg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccfg_s_) + ptr_cutest_cint_ccfg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ccfg_s_) @ccall $ptr_cutest_cint_ccfg_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, c::Ptr{Float32}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, cjac::Ptr{Float32}, grad::Ptr{Bool})::Cvoid end function cutest_cint_clfg_s_(status, n, m, x, y, f, g, grad) - ptr_cutest_cint_clfg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_clfg_s_) + ptr_cutest_cint_clfg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_clfg_s_) @ccall $ptr_cutest_cint_clfg_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, f::Ptr{Float32}, g::Ptr{Float32}, grad::Ptr{Bool})::Cvoid end function cutest_cint_cgr_s_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac2, cjac) - ptr_cutest_cint_cgr_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cgr_s_) + ptr_cutest_cint_cgr_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cgr_s_) @ccall $ptr_cutest_cint_cgr_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, grlagf::Ptr{Bool}, g::Ptr{Float32}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, @@ -836,7 +836,7 @@ function cutest_cint_cgr_s_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac end function cutest_cint_csgr_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun) - ptr_cutest_cint_csgr_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgr_s_) + ptr_cutest_cint_csgr_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_csgr_s_) @ccall $ptr_cutest_cint_csgr_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float32}, indvar::Ptr{Cint}, @@ -844,19 +844,19 @@ function cutest_cint_csgr_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indv end function cutest_csgrp_s_(status, n, nnzj, lj, jvar, jcon) - ptr_cutest_csgrp_s_ = Libdl.dlsym(cutest_lib, :cutest_csgrp_s_) + ptr_cutest_csgrp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_csgrp_s_) @ccall $ptr_cutest_csgrp_s_(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, jvar::Ptr{Cint}, jcon::Ptr{Cint})::Cvoid end function cutest_csjp_s_(status, nnzj, lj, jvar, jcon) - ptr_cutest_csjp_s_ = Libdl.dlsym(cutest_lib, :cutest_csjp_s_) + ptr_cutest_csjp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_csjp_s_) @ccall $ptr_cutest_csjp_s_(status::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, jvar::Ptr{Cint}, jcon::Ptr{Cint})::Cvoid end function cutest_cint_ccfsg_s_(status, n, m, x, c, nnzj, lcjac, cjac, indvar, indfun, grad) - ptr_cutest_cint_ccfsg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccfsg_s_) + ptr_cutest_cint_ccfsg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ccfsg_s_) @ccall $ptr_cutest_cint_ccfsg_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, c::Ptr{Float32}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float32}, indvar::Ptr{Cint}, indfun::Ptr{Cint}, @@ -864,14 +864,14 @@ function cutest_cint_ccfsg_s_(status, n, m, x, c, nnzj, lcjac, cjac, indvar, ind end function cutest_cint_ccifg_s_(status, n, icon, x, ci, gci, grad) - ptr_cutest_cint_ccifg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccifg_s_) + ptr_cutest_cint_ccifg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ccifg_s_) @ccall $ptr_cutest_cint_ccifg_s_(status::Ptr{Cint}, n::Ptr{Cint}, icon::Ptr{Cint}, x::Ptr{Float32}, ci::Ptr{Float32}, gci::Ptr{Float32}, grad::Ptr{Bool})::Cvoid end function cutest_cint_ccifsg_s_(status, n, con, x, ci, nnzsgc, lsgci, sgci, ivsgci, grad) - ptr_cutest_cint_ccifsg_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ccifsg_s_) + ptr_cutest_cint_ccifsg_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ccifsg_s_) @ccall $ptr_cutest_cint_ccifsg_s_(status::Ptr{Cint}, n::Ptr{Cint}, con::Ptr{Cint}, x::Ptr{Float32}, ci::Ptr{Float32}, nnzsgc::Ptr{Cint}, lsgci::Ptr{Cint}, sgci::Ptr{Float32}, ivsgci::Ptr{Cint}, @@ -879,7 +879,7 @@ function cutest_cint_ccifsg_s_(status, n, con, x, ci, nnzsgc, lsgci, sgci, ivsgc end function cutest_cint_cgrdh_s_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcjac2, cjac, lh1, h) - ptr_cutest_cint_cgrdh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cgrdh_s_) + ptr_cutest_cint_cgrdh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cgrdh_s_) @ccall $ptr_cutest_cint_cgrdh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, grlagf::Ptr{Bool}, g::Ptr{Float32}, jtrans::Ptr{Bool}, lcjac1::Ptr{Cint}, lcjac2::Ptr{Cint}, @@ -887,46 +887,46 @@ function cutest_cint_cgrdh_s_(status, n, m, x, y, grlagf, g, jtrans, lcjac1, lcj end function cutest_cdh_s_(status, n, m, x, y, lh1, h) - ptr_cutest_cdh_s_ = Libdl.dlsym(cutest_lib, :cutest_cdh_s_) + ptr_cutest_cdh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdh_s_) @ccall $ptr_cutest_cdh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_cdhc_s_(status, n, m, x, y, lh1, h) - ptr_cutest_cdhc_s_ = Libdl.dlsym(cutest_lib, :cutest_cdhc_s_) + ptr_cutest_cdhc_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdhc_s_) @ccall $ptr_cutest_cdhc_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_cdhj_s_(status, n, m, x, y0, y, lh1, h) - ptr_cutest_cdhj_s_ = Libdl.dlsym(cutest_lib, :cutest_cdhj_s_) + ptr_cutest_cdhj_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cdhj_s_) @ccall $ptr_cutest_cdhj_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y0::Ptr{Float32}, y::Ptr{Float32}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_cshp_s_(status, n, nnzh, lh, irnh, icnh) - ptr_cutest_cshp_s_ = Libdl.dlsym(cutest_lib, :cutest_cshp_s_) + ptr_cutest_cshp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cshp_s_) @ccall $ptr_cutest_cshp_s_(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_csh_s_(status, n, m, x, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_csh_s_ = Libdl.dlsym(cutest_lib, :cutest_csh_s_) + ptr_cutest_csh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_csh_s_) @ccall $ptr_cutest_csh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cshc_s_(status, n, m, x, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_cshc_s_ = Libdl.dlsym(cutest_lib, :cutest_cshc_s_) + ptr_cutest_cshc_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cshc_s_) @ccall $ptr_cutest_cshc_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid end function cutest_cshj_s_(status, n, m, x, y0, y, nnzh, lh, h, irnh, icnh) - ptr_cutest_cshj_s_ = Libdl.dlsym(cutest_lib, :cutest_cshj_s_) + ptr_cutest_cshj_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cshj_s_) @ccall $ptr_cutest_cshj_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y0::Ptr{Float32}, y::Ptr{Float32}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -934,7 +934,7 @@ end function cutest_cint_ceh_s_(status, n, m, x, y, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_ceh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_ceh_s_) + ptr_cutest_cint_ceh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_ceh_s_) @ccall $ptr_cutest_cint_ceh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, ne::Ptr{Cint}, le::Ptr{Cint}, iprnhi::Ptr{Cint}, iprhi::Ptr{Cint}, lirnhi::Ptr{Cint}, irnhi::Ptr{Cint}, @@ -942,38 +942,38 @@ function cutest_cint_ceh_s_(status, n, m, x, y, ne, le, iprnhi, iprhi, lirnhi, i end function cutest_cifn_s_(status, n, iprob, x, f) - ptr_cutest_cifn_s_ = Libdl.dlsym(cutest_lib, :cutest_cifn_s_) + ptr_cutest_cifn_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cifn_s_) @ccall $ptr_cutest_cifn_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float32}, f::Ptr{Float32})::Cvoid end function cutest_cigr_s_(status, n, iprob, x, g) - ptr_cutest_cigr_s_ = Libdl.dlsym(cutest_lib, :cutest_cigr_s_) + ptr_cutest_cigr_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cigr_s_) @ccall $ptr_cutest_cigr_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float32}, g::Ptr{Float32})::Cvoid end function cutest_cisgr_s_(status, n, iprob, x, nnzg, lg, sg, ivsg) - ptr_cutest_cisgr_s_ = Libdl.dlsym(cutest_lib, :cutest_cisgr_s_) + ptr_cutest_cisgr_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cisgr_s_) @ccall $ptr_cutest_cisgr_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, x::Ptr{Float32}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, sg::Ptr{Float32}, ivsg::Ptr{Cint})::Cvoid end function cutest_cisgrp_s_(status, n, iprob, nnzg, lg, ivsg) - ptr_cutest_cisgrp_s_ = Libdl.dlsym(cutest_lib, :cutest_cisgrp_s_) + ptr_cutest_cisgrp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cisgrp_s_) @ccall $ptr_cutest_cisgrp_s_(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzg::Ptr{Cint}, lg::Ptr{Cint}, ivsg::Ptr{Cint})::Cvoid end function cutest_cidh_s_(status, n, x, iprob, lh1, h) - ptr_cutest_cidh_s_ = Libdl.dlsym(cutest_lib, :cutest_cidh_s_) + ptr_cutest_cidh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cidh_s_) @ccall $ptr_cutest_cidh_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, iprob::Ptr{Cint}, lh1::Ptr{Cint}, h::Ptr{Float32})::Cvoid end function cutest_cish_s_(status, n, x, iprob, nnzh, lh, h, irnh, icnh) - ptr_cutest_cish_s_ = Libdl.dlsym(cutest_lib, :cutest_cish_s_) + ptr_cutest_cish_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cish_s_) @ccall $ptr_cutest_cish_s_(status::Ptr{Cint}, n::Ptr{Cint}, x::Ptr{Float32}, iprob::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, h::Ptr{Float32}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -981,7 +981,7 @@ end function cutest_cint_csgrsh_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun, nnzh, lh, h, irnh, icnh) - ptr_cutest_cint_csgrsh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgrsh_s_) + ptr_cutest_cint_csgrsh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_csgrsh_s_) @ccall $ptr_cutest_cint_csgrsh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float32}, indvar::Ptr{Cint}, @@ -990,7 +990,7 @@ function cutest_cint_csgrsh_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, in end function cutest_csgrshp_s_(status, n, nnzj, lcjac, indvar, indfun, nnzh, lh, irnh, icnh) - ptr_cutest_csgrshp_s_ = Libdl.dlsym(cutest_lib, :cutest_csgrshp_s_) + ptr_cutest_csgrshp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_csgrshp_s_) @ccall $ptr_cutest_csgrshp_s_(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, indvar::Ptr{Cint}, indfun::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid @@ -998,7 +998,7 @@ end function cutest_cint_csgreh_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, indvar, indfun, ne, le, iprnhi, iprhi, lirnhi, irnhi, lhi, hi, byrows) - ptr_cutest_cint_csgreh_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_csgreh_s_) + ptr_cutest_cint_csgreh_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_csgreh_s_) @ccall $ptr_cutest_cint_csgreh_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, x::Ptr{Float32}, y::Ptr{Float32}, grlagf::Ptr{Bool}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, cjac::Ptr{Float32}, indvar::Ptr{Cint}, @@ -1009,14 +1009,14 @@ function cutest_cint_csgreh_s_(status, n, m, x, y, grlagf, nnzj, lcjac, cjac, in end function cutest_cint_chprod_s_(status, n, m, goth, x, y, p, q) - ptr_cutest_cint_chprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_chprod_s_) + ptr_cutest_cint_chprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_chprod_s_) @ccall $ptr_cutest_cint_chprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, y::Ptr{Float32}, p::Ptr{Float32}, q::Ptr{Float32})::Cvoid end function cutest_cint_chsprod_s_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_chsprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_chsprod_s_) + ptr_cutest_cint_chsprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_chsprod_s_) @ccall $ptr_cutest_cint_chsprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, y::Ptr{Float32}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float32}, nnzr::Ptr{Cint}, @@ -1024,14 +1024,14 @@ function cutest_cint_chsprod_s_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, i end function cutest_cint_chcprod_s_(status, n, m, goth, x, y, p, q) - ptr_cutest_cint_chcprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_chcprod_s_) + ptr_cutest_cint_chcprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_chcprod_s_) @ccall $ptr_cutest_cint_chcprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, y::Ptr{Float32}, p::Ptr{Float32}, q::Ptr{Float32})::Cvoid end function cutest_cint_cshcprod_s_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, indr, r) - ptr_cutest_cint_cshcprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cshcprod_s_) + ptr_cutest_cint_cshcprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cshcprod_s_) @ccall $ptr_cutest_cint_cshcprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, y::Ptr{Float32}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float32}, @@ -1039,21 +1039,21 @@ function cutest_cint_cshcprod_s_(status, n, m, goth, x, y, nnzp, indp, p, nnzr, end function cutest_cint_chjprod_s_(status, n, m, goth, x, y0, y, p, q) - ptr_cutest_cint_chjprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_chjprod_s_) + ptr_cutest_cint_chjprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_chjprod_s_) @ccall $ptr_cutest_cint_chjprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, y0::Ptr{Float32}, y::Ptr{Float32}, p::Ptr{Float32}, q::Ptr{Float32})::Cvoid end function cutest_cint_cjprod_s_(status, n, m, gotj, jtrans, x, p, lp, r, lr) - ptr_cutest_cint_cjprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cjprod_s_) + ptr_cutest_cint_cjprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cjprod_s_) @ccall $ptr_cutest_cint_cjprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, gotj::Ptr{Bool}, jtrans::Ptr{Bool}, x::Ptr{Float32}, p::Ptr{Float32}, lp::Ptr{Cint}, r::Ptr{Float32}, lr::Ptr{Cint})::Cvoid end function cutest_cint_csjprod_s_(status, n, m, gotj, jtrans, x, nnzp, indp, p, lp, nnzr, indr, r, lr) - ptr_cutest_cint_csjprod_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_csjprod_s_) + ptr_cutest_cint_csjprod_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_csjprod_s_) @ccall $ptr_cutest_cint_csjprod_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, gotj::Ptr{Bool}, jtrans::Ptr{Bool}, x::Ptr{Float32}, nnzp::Ptr{Cint}, indp::Ptr{Cint}, p::Ptr{Float32}, lp::Ptr{Cint}, @@ -1062,7 +1062,7 @@ function cutest_cint_csjprod_s_(status, n, m, gotj, jtrans, x, nnzp, indp, p, lp end function cutest_cint_cchprods_s_(status, n, m, goth, x, p, lchp, chpval, chpind, chpptr) - ptr_cutest_cint_cchprods_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cchprods_s_) + ptr_cutest_cint_cchprods_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cchprods_s_) @ccall $ptr_cutest_cint_cchprods_s_(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, p::Ptr{Float32}, lchp::Ptr{Cint}, chpval::Ptr{Float32}, chpind::Ptr{Cint}, @@ -1070,13 +1070,13 @@ function cutest_cint_cchprods_s_(status, n, m, goth, x, p, lchp, chpval, chpind, end function cutest_cchprodsp_s_(status, m, lchp, chpind, chpptr) - ptr_cutest_cchprodsp_s_ = Libdl.dlsym(cutest_lib, :cutest_cchprodsp_s_) + ptr_cutest_cchprodsp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cchprodsp_s_) @ccall $ptr_cutest_cchprodsp_s_(status::Ptr{Cint}, m::Ptr{Cint}, lchp::Ptr{Cint}, chpind::Ptr{Cint}, chpptr::Ptr{Cint})::Cvoid end function cutest_cint_cohprods_s_(status, n, goth, x, p, nnzohp, lohp, ohpval, ohpind) - ptr_cutest_cint_cohprods_s_ = Libdl.dlsym(cutest_lib, :cutest_cint_cohprods_s_) + ptr_cutest_cint_cohprods_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cint_cohprods_s_) @ccall $ptr_cutest_cint_cohprods_s_(status::Ptr{Cint}, n::Ptr{Cint}, goth::Ptr{Bool}, x::Ptr{Float32}, p::Ptr{Float32}, nnzohp::Ptr{Cint}, lohp::Ptr{Cint}, ohpval::Ptr{Float32}, @@ -1084,28 +1084,220 @@ function cutest_cint_cohprods_s_(status, n, goth, x, p, nnzohp, lohp, ohpval, oh end function cutest_cohprodsp_s_(status, nnzohp, lohp, chpind) - ptr_cutest_cohprodsp_s_ = Libdl.dlsym(cutest_lib, :cutest_cohprodsp_s_) + ptr_cutest_cohprodsp_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cohprodsp_s_) @ccall $ptr_cutest_cohprodsp_s_(status::Ptr{Cint}, nnzohp::Ptr{Cint}, lohp::Ptr{Cint}, chpind::Ptr{Cint})::Cvoid end function cutest_uterminate_s_(status) - ptr_cutest_uterminate_s_ = Libdl.dlsym(cutest_lib, :cutest_uterminate_s_) + ptr_cutest_uterminate_s_ = Libdl.dlsym(cutest_lib_single, :cutest_uterminate_s_) @ccall $ptr_cutest_uterminate_s_(status::Ptr{Cint})::Cvoid end function cutest_cterminate_s_(status) - ptr_cutest_cterminate_s_ = Libdl.dlsym(cutest_lib, :cutest_cterminate_s_) + ptr_cutest_cterminate_s_ = Libdl.dlsym(cutest_lib_single, :cutest_cterminate_s_) @ccall $ptr_cutest_cterminate_s_(status::Ptr{Cint})::Cvoid end +function CUTEST_udimen_q(status, funit, n) + ptr_CUTEST_udimen_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_udimen_q) + @ccall $ptr_CUTEST_udimen_q(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint})::Cvoid +end + +function CUTEST_udimsh_q(status, nnzh) + ptr_CUTEST_udimsh_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_udimsh_q) + @ccall $ptr_CUTEST_udimsh_q(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid +end + +function CUTEST_udimse_q(status, ne, nzh, nzirnh) + ptr_CUTEST_udimse_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_udimse_q) + @ccall $ptr_CUTEST_udimse_q(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, + nzirnh::Ptr{Cint})::Cvoid +end + +function CUTEST_uvartype_q(status, n, ivarty) + ptr_CUTEST_uvartype_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_uvartype_q) + @ccall $ptr_CUTEST_uvartype_q(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid +end + +function CUTEST_unames_q(status, n, pname, vnames) + ptr_CUTEST_unames_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_unames_q) + @ccall $ptr_CUTEST_unames_q(status::Ptr{Cint}, n::Ptr{Cint}, pname::Ptr{Cchar}, + vnames::Ptr{Cchar})::Cvoid +end + +function CUTEST_cdimen_q(status, funit, n, m) + ptr_CUTEST_cdimen_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimen_q) + @ccall $ptr_CUTEST_cdimen_q(status::Ptr{Cint}, funit::Ptr{Cint}, n::Ptr{Cint}, + m::Ptr{Cint})::Cvoid +end + +function CUTEST_cnoobj_q(status, funit, noobj) + ptr_CUTEST_cnoobj_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cnoobj_q) + @ccall $ptr_CUTEST_cnoobj_q(status::Ptr{Cint}, funit::Ptr{Cint}, noobj::Ptr{Bool})::Cvoid +end + +function CUTEST_cdimsg_q(status, nnzg) + ptr_CUTEST_cdimsg_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimsg_q) + @ccall $ptr_CUTEST_cdimsg_q(status::Ptr{Cint}, nnzg::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimsj_q(status, nnzj) + ptr_CUTEST_cdimsj_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimsj_q) + @ccall $ptr_CUTEST_cdimsj_q(status::Ptr{Cint}, nnzj::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimsh_q(status, nnzh) + ptr_CUTEST_cdimsh_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimsh_q) + @ccall $ptr_CUTEST_cdimsh_q(status::Ptr{Cint}, nnzh::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimcop_q(status, nnzohp) + ptr_CUTEST_cdimcop_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimcop_q) + @ccall $ptr_CUTEST_cdimcop_q(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimohp_q(status, nnzohp) + ptr_CUTEST_cdimohp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimohp_q) + @ccall $ptr_CUTEST_cdimohp_q(status::Ptr{Cint}, nnzohp::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimchp_q(status, nnzchp) + ptr_CUTEST_cdimchp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimchp_q) + @ccall $ptr_CUTEST_cdimchp_q(status::Ptr{Cint}, nnzchp::Ptr{Cint})::Cvoid +end + +function CUTEST_cdimse_q(status, ne, nzh, nzirnh) + ptr_CUTEST_cdimse_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cdimse_q) + @ccall $ptr_CUTEST_cdimse_q(status::Ptr{Cint}, ne::Ptr{Cint}, nzh::Ptr{Cint}, + nzirnh::Ptr{Cint})::Cvoid +end + +function CUTEST_cstats_q(status, nonlinear_variables_objective, nonlinear_variables_constraints, + equality_constraints, linear_constraints) + ptr_CUTEST_cstats_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cstats_q) + @ccall $ptr_CUTEST_cstats_q(status::Ptr{Cint}, nonlinear_variables_objective::Ptr{Cint}, + nonlinear_variables_constraints::Ptr{Cint}, + equality_constraints::Ptr{Cint}, linear_constraints::Ptr{Cint})::Cvoid +end + +function CUTEST_cvartype_q(status, n, ivarty) + ptr_CUTEST_cvartype_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cvartype_q) + @ccall $ptr_CUTEST_cvartype_q(status::Ptr{Cint}, n::Ptr{Cint}, ivarty::Ptr{Cint})::Cvoid +end + +function CUTEST_cnames_q(status, n, m, pname, vnames, gnames) + ptr_CUTEST_cnames_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cnames_q) + @ccall $ptr_CUTEST_cnames_q(status::Ptr{Cint}, n::Ptr{Cint}, m::Ptr{Cint}, pname::Ptr{Cchar}, + vnames::Ptr{Cchar}, gnames::Ptr{Cchar})::Cvoid +end + +function CUTEST_connames_q(status, m, gname) + ptr_CUTEST_connames_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_connames_q) + @ccall $ptr_CUTEST_connames_q(status::Ptr{Cint}, m::Ptr{Cint}, gname::Ptr{Cchar})::Cvoid +end + +function CUTEST_pname_q(status, funit, pname) + ptr_CUTEST_pname_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_pname_q) + @ccall $ptr_CUTEST_pname_q(status::Ptr{Cint}, funit::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid +end + +function CUTEST_probname_q(status, pname) + ptr_CUTEST_probname_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_probname_q) + @ccall $ptr_CUTEST_probname_q(status::Ptr{Cint}, pname::Ptr{Cchar})::Cvoid +end + +function CUTEST_varnames_q(status, n, vname) + ptr_CUTEST_varnames_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_varnames_q) + @ccall $ptr_CUTEST_varnames_q(status::Ptr{Cint}, n::Ptr{Cint}, vname::Ptr{Cchar})::Cvoid +end + +function CUTEST_ushp_q(status, n, nnzh, lh, irnh, icnh) + ptr_CUTEST_ushp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_ushp_q) + @ccall $ptr_CUTEST_ushp_q(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, + irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid +end + +function CUTEST_csgrp_q(status, n, nnzj, lj, jvar, jcon) + ptr_CUTEST_csgrp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_csgrp_q) + @ccall $ptr_CUTEST_csgrp_q(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, + jvar::Ptr{Cint}, jcon::Ptr{Cint})::Cvoid +end + +function CUTEST_csjp_q(status, nnzj, lj, jvar, jcon) + ptr_CUTEST_csjp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_csjp_q) + @ccall $ptr_CUTEST_csjp_q(status::Ptr{Cint}, nnzj::Ptr{Cint}, lj::Ptr{Cint}, jvar::Ptr{Cint}, + jcon::Ptr{Cint})::Cvoid +end + +function CUTEST_cshp_q(status, n, nnzh, lh, irnh, icnh) + ptr_CUTEST_cshp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cshp_q) + @ccall $ptr_CUTEST_cshp_q(status::Ptr{Cint}, n::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, + irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid +end + +function CUTEST_cisgrp_q(status, n, iprob, nnzg, lg, ivsg) + ptr_CUTEST_cisgrp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cisgrp_q) + @ccall $ptr_CUTEST_cisgrp_q(status::Ptr{Cint}, n::Ptr{Cint}, iprob::Ptr{Cint}, nnzg::Ptr{Cint}, + lg::Ptr{Cint}, ivsg::Ptr{Cint})::Cvoid +end + +function CUTEST_csgrshp_q(status, n, nnzj, lcjac, indvar, indfun, nnzh, lh, irnh, icnh) + ptr_CUTEST_csgrshp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_csgrshp_q) + @ccall $ptr_CUTEST_csgrshp_q(status::Ptr{Cint}, n::Ptr{Cint}, nnzj::Ptr{Cint}, lcjac::Ptr{Cint}, + indvar::Ptr{Cint}, indfun::Ptr{Cint}, nnzh::Ptr{Cint}, lh::Ptr{Cint}, + irnh::Ptr{Cint}, icnh::Ptr{Cint})::Cvoid +end + +function CUTEST_cchprodsp_q(status, m, lchp, chpind, chpptr) + ptr_CUTEST_cchprodsp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cchprodsp_q) + @ccall $ptr_CUTEST_cchprodsp_q(status::Ptr{Cint}, m::Ptr{Cint}, lchp::Ptr{Cint}, + chpind::Ptr{Cint}, chpptr::Ptr{Cint})::Cvoid +end + +function CUTEST_cohprodsp_q(status, nnzohp, lohp, chpind) + ptr_CUTEST_cohprodsp_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cohprodsp_q) + @ccall $ptr_CUTEST_cohprodsp_q(status::Ptr{Cint}, nnzohp::Ptr{Cint}, lohp::Ptr{Cint}, + chpind::Ptr{Cint})::Cvoid +end + +function CUTEST_uterminate_q(status) + ptr_CUTEST_uterminate_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_uterminate_q) + @ccall $ptr_CUTEST_uterminate_q(status::Ptr{Cint})::Cvoid +end + +function CUTEST_cterminate_q(status) + ptr_CUTEST_cterminate_q = Libdl.dlsym(cutest_lib_quadruple, :CUTEST_cterminate_q) + @ccall $ptr_CUTEST_cterminate_q(status::Ptr{Cint})::Cvoid +end + function fortran_open_(funit, fname, ierr) - ptr_fortran_open_ = Libdl.dlsym(cutest_lib, :fortran_open_) + ptr_fortran_open_ = Libdl.dlsym(cutest_lib_double, :fortran_open_) @ccall $ptr_fortran_open_(funit::Ptr{Cint}, fname::Ptr{Cchar}, ierr::Ptr{Cint})::Cvoid end +function fortran_open_s_(funit, fname, ierr) + ptr_fortran_open_s_ = Libdl.dlsym(cutest_lib_single, :fortran_open_) + @ccall $ptr_fortran_open_s_(funit::Ptr{Cint}, fname::Ptr{Cchar}, ierr::Ptr{Cint})::Cvoid +end + +function fortran_open_q_(funit, fname, ierr) + ptr_fortran_open_q_ = Libdl.dlsym(cutest_lib_quadruple, :fortran_open_) + @ccall $ptr_fortran_open_q_(funit::Ptr{Cint}, fname::Ptr{Cchar}, ierr::Ptr{Cint})::Cvoid +end + function fortran_close_(funit, ierr) - ptr_fortran_close_ = Libdl.dlsym(cutest_lib, :fortran_close_) + ptr_fortran_close_ = Libdl.dlsym(cutest_lib_double, :fortran_close_) @ccall $ptr_fortran_close_(funit::Ptr{Cint}, ierr::Ptr{Cint})::Cvoid end + +function fortran_close_s_(funit, ierr) + ptr_fortran_close_s_ = Libdl.dlsym(cutest_lib_single, :fortran_close_) + @ccall $ptr_fortran_close_s_(funit::Ptr{Cint}, ierr::Ptr{Cint})::Cvoid +end + +function fortran_close_q_(funit, ierr) + ptr_fortran_close_q_ = Libdl.dlsym(cutest_lib_quadruple, :fortran_close_) + @ccall $ptr_fortran_close_q_(funit::Ptr{Cint}, ierr::Ptr{Cint})::Cvoid +end #! format: on diff --git a/src/model.jl b/src/model.jl index 1f9896dc..1bced579 100644 --- a/src/model.jl +++ b/src/model.jl @@ -1,5 +1,5 @@ -mutable struct CUTEstModel <: AbstractNLPModel{Float64, Vector{Float64}} - meta::NLPModelMeta{Float64, Vector{Float64}} +mutable struct CUTEstModel{T} <: AbstractNLPModel{T, Vector{T}} + meta::NLPModelMeta{T, Vector{T}} counters::Counters hrows::Vector{Int32} hcols::Vector{Int32} @@ -7,13 +7,13 @@ mutable struct CUTEstModel <: AbstractNLPModel{Float64, Vector{Float64}} jrows::Vector{Int32} jcols::Vector{Int32} - blin::Vector{Float64} + blin::Vector{T} clinrows::Vector{Int32} clincols::Vector{Int32} - clinvals::Vector{Float64} + clinvals::Vector{T} - work::Vector{Float64} - Jval::Vector{Cdouble} + work::Vector{T} + Jval::Vector{T} Jvar::Vector{Cint} end @@ -73,16 +73,16 @@ function CUTEstModel( end pname, sif = basename(name) |> splitext - outsdif = "OUTSDIF_$pname.d" - global cutest_instances - cutest_instances > 0 && error("CUTEst: call finalize on current model first") - global cutest_lib + outsdif = "OUTSDIF_$(pname)_double.d" + global cutest_instances_double + cutest_instances_double > 0 && error("CUTEst: call finalize on current model first") + global cutest_lib_double cd(cutest_problems_path) do if !decode isfile(outsdif) || error("CUTEst: no decoded problem found") - libname = "lib$pname" - isfile("$libname.$(Libdl.dlext)") || error("CUTEst: lib not found; decode problem first") - cutest_lib = Libdl.dlopen(libname, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL) + libsif = "lib$(pname)_double" + isfile("$libsif.$(Libdl.dlext)") || error("CUTEst: lib not found; decode problem first") + cutest_lib_double = Libdl.dlopen(libsif, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL) else sifdecoder(path_sifname, args..., verbose = verbose, outsdif = outsdif, precision = :double) build_libsif(path_sifname, precision = :double) @@ -226,7 +226,7 @@ function CUTEstModel( nnzj = nnzj[] |> Int nnzh = nnzh[] |> Int - work = Vector{Int32}(undef, ncon) + work = Vector{Float64}(undef, ncon) fortran_close_(Ref{Cint}(funit), status) cutest_error(status[]) @@ -248,7 +248,7 @@ function CUTEstModel( name = splitext(name)[1], ) - nlp = CUTEstModel( + nlp = CUTEstModel{Float64}( meta, Counters(), hrows, @@ -264,16 +264,16 @@ function CUTEstModel( Jvar, ) - cutest_instances += 1 + cutest_instances_double += 1 finalizer(cutest_finalize, nlp) return nlp end function cutest_finalize(nlp::CUTEstModel) - global cutest_instances - cutest_instances == 0 && return - global cutest_lib + global cutest_instances_double + cutest_instances_double == 0 && return + global cutest_lib_double status = Ref{Cint}(0) if nlp.meta.ncon > 0 cterminate(status) @@ -281,9 +281,9 @@ function cutest_finalize(nlp::CUTEstModel) uterminate(status) end cutest_error(status[]) - Libdl.dlclose(cutest_lib) - cutest_instances -= 1 - cutest_lib = C_NULL + Libdl.dlclose(cutest_lib_double) + cutest_instances_double -= 1 + cutest_lib_double = C_NULL return end diff --git a/src/sifdecoder.jl b/src/sifdecoder.jl index 750ded4c..91f37d85 100644 --- a/src/sifdecoder.jl +++ b/src/sifdecoder.jl @@ -22,6 +22,8 @@ function set_mastsif(set::String = "sifcollection") return nothing end +_name_outsdif(name::AbstractString, precision::Symbol) = "OUTSDIF_$(basename(name))_$(precision).d" + """Decode a SIF problem. Optional arguments are passed directly to the SIF decoder. @@ -32,8 +34,8 @@ function sifdecoder( name::AbstractString, args...; verbose::Bool = false, - outsdif::String = "OUTSDIF_$(basename(name)).d", precision::Symbol = :double, + outsdif::String = _name_outsdif(name, precision), libsif_folder::String = cutest_problems_path, ) if precision == :single @@ -111,7 +113,7 @@ function build_libsif( end pname, sif = basename(name) |> splitext - libname = "lib$pname" + libsif = "lib$(pname)_$(precision)" cd(libsif_folder) do if isfile("ELFUN$suffix.f") @@ -126,7 +128,12 @@ function build_libsif( end if Sys.isapple() run( - `$linker $sh_flags -o $libname.$(Libdl.dlext) $(object_files) -Wl,-rpath $libpath $(joinpath(libpath, "libcutest_double.$(Libdl.dlext)")) $libgfortran`, + `$linker $sh_flags -o $libsif.$(Libdl.dlext) $(object_files) -Wl,-rpath $libpath $(joinpath(libpath, "libcutest_double.$(Libdl.dlext)")) $libgfortran`, + ) + elseif Sys.iswindows() + libcutest_double = joinpath(libpath, "libcutest_double.a") + run( + `gfortran -shared -o $libsif.$(Libdl.dlext) $(object_files) -Wl,--whole-archive $(libcutest_double) -Wl,--no-whole-archive`, ) elseif Sys.iswindows() libcutest_double = joinpath(libpath, "libcutest_double.a") @@ -135,13 +142,12 @@ function build_libsif( ) else run( - `$linker $sh_flags -o $libname.$(Libdl.dlext) $(object_files) -rpath=$libpath -L$libpath -lcutest_double $libgfortran`, + `$linker $sh_flags -o $libsif.$(Libdl.dlext) $(object_files) -rpath=$libpath -L$libpath -lcutest_double $libgfortran`, ) end delete_temp_files(suffix) - global cutest_lib = - Libdl.dlopen(libname, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL) - global cutest_lib_path = joinpath(cutest_problems_path, "$libname.$(Libdl.dlext)") + global cutest_lib_double = + Libdl.dlopen(libsif, Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL) end end end