From ae6e64cee989a5ee3d158addfe49c8eda20b23cf Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Sun, 12 Nov 2023 22:18:23 -0600 Subject: [PATCH] Update the C wrappers with the release of libHSL --- gen/README.md | 6 +- gen/rewriter.jl | 4 +- gen/wrapper.jl | 8 +- src/C/hsl_ma48.jl | 214 ++++---- src/C/hsl_ma57.jl | 384 +++++++------ src/C/hsl_ma77.jl | 342 ++++++------ src/C/hsl_ma86.jl | 222 ++++---- src/C/hsl_ma87.jl | 238 ++++---- src/C/hsl_ma97.jl | 510 ++++++++---------- src/C/hsl_mc64.jl | 60 +-- src/C/hsl_mc68.jl | 47 +- src/C/hsl_mc69.jl | 680 +++++++++++------------ src/C/hsl_mc78.jl | 280 +++++----- src/C/hsl_mc79.jl | 59 +- src/C/hsl_mi20.jl | 178 +++--- src/C/hsl_mi28.jl | 108 ++-- src/C/juliahsl.jl | 1248 ------------------------------------------ src/C/libhsl.jl | 1316 +++++++++++++++++++++++++++++++++++++++++++++ src/wrappers.jl | 4 +- 19 files changed, 2901 insertions(+), 3007 deletions(-) delete mode 100644 src/C/juliahsl.jl create mode 100644 src/C/libhsl.jl diff --git a/gen/README.md b/gen/README.md index 0a2d6e3..2db079a 100644 --- a/gen/README.md +++ b/gen/README.md @@ -12,7 +12,7 @@ The `main` function supports the boolean keyword argument `optimized` to clear t You can also call `main(library)` if you want to generate the wrapper for a specific HSL `library`. The possible values for `library` are: - `"all"` (default); -- `"juliahsl"`; +- `"libhsl"`; - `"hsl_ma48"`; - `"hsl_ma57"`; - `"hsl_ma77"`; @@ -30,8 +30,8 @@ The possible values for `library` are: If a package doesn't have a C interface, we are still able to use it in Julia but we need to call the Fortran functions and subroutines. The wrappers for Fortran functions and subroutines can't be easily generated and are generally written by hand but the file `analyzer.jl` helps to partially generate the wrappers. `analyzer.jl` is only able to fully generate the wrappers of functions and subroutines written in FORTRAN 77. -You just need to provide the path of the `JuliaHSL` on your computer (`julihsl` variable) and call `main(library)`. -`library` can be any HSL package available in the `JuliaHSL` folder. +You just need to provide the path of the `libHSL` on your computer (`libhsl` variable) and call `main(library)`. +`library` can be any HSL package available in the `libHSL` folder. # Maintenance diff --git a/gen/rewriter.jl b/gen/rewriter.jl index ba382b1..4bb1957 100644 --- a/gen/rewriter.jl +++ b/gen/rewriter.jl @@ -38,8 +38,8 @@ structure_modifications = Dict("_control_s}" => "_control{Float32}}", function rewrite!(path::String, name::String, optimized::Bool) text = read(path, String) - if name == "juliahsl" - updated_text = replace(text, "# no prototype is found for this function at juliahsl.h:44:6, please use with caution\n" => "") + if name == "libhsl" + updated_text = replace(text, "# no prototype is found for this function at libhsl.h:44:6, please use with caution\n" => "") updated_text = replace(updated_text, "major, minor, patch)\n" => ")\n major = Ref{Cint}(0)\n minor = Ref{Cint}(0)\n patch = Ref{Cint}(0)\n") updated_text = replace(updated_text, "Ptr{Cint}" => "Ref{Cint}") updated_text = replace(updated_text, "Cvoid\n" => "Cvoid\n VersionNumber(major[], minor[], patch[])\n") diff --git a/gen/wrapper.jl b/gen/wrapper.jl index 3058419..6e7f26d 100644 --- a/gen/wrapper.jl +++ b/gen/wrapper.jl @@ -15,7 +15,7 @@ function wrapper(name::String, headers::Vector{String}, optimized::Bool) options = load_options(joinpath(@__DIR__, "hsl.toml")) options["general"]["output_file_path"] = joinpath("..", "src", "C", "$(name).jl") - if name != "juliahsl" + if name != "libhsl" solver = split(name, "_")[2] optimized && (options["general"]["output_ignorelist"] = ["$(solver)realtype_[sdcz]_\$", "$(solver)pkgtype_[sdcz]_\$", @@ -36,7 +36,7 @@ function wrapper(name::String, headers::Vector{String}, optimized::Bool) path = options["general"]["output_file_path"] - (name != "juliahsl") && format_file(path, YASStyle()) + (name != "libhsl") && format_file(path, YASStyle()) rewrite!(path, name, optimized) return nothing end @@ -49,8 +49,8 @@ end function main(name::String="all"; optimized::Bool=false) include = joinpath(HSL_jll.artifact_dir, "include") - if name == "all" || name == "juliahsl" - wrapper("juliahsl", [joinpath(include, "juliahsl.h")], optimized) + if name == "all" || name == "libhsl" + wrapper("libhsl", [joinpath(include, "libhsl.h")], optimized) end if name == "all" || name == "hsl_ma48" diff --git a/src/C/hsl_ma48.jl b/src/C/hsl_ma48.jl index c1d15ab..83163b2 100644 --- a/src/C/hsl_ma48.jl +++ b/src/C/hsl_ma48.jl @@ -1,174 +1,158 @@ function ma48_initialize_s(factors) - @ccall libhsl.ma48_initialize_s(factors::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma48_initialize_s(factors::Ptr{Ptr{Cvoid}})::Cvoid end mutable struct ma48_control{T} - f_arrays::Cint - multiplier::T - u::T - switch_::T - drop::T - tolerance::T - cgce::T - lp::Cint - wp::Cint - mp::Cint - ldiag::Cint - btf::Cint - struct_::Cint - maxit::Cint - factor_blocking::Cint - solve_blas::Cint - pivoting::Cint - diagonal_pivoting::Cint - fill_in::Cint - switch_mode::Cint + f_arrays::Cint + multiplier::T + u::T + switch_::T + drop::T + tolerance::T + cgce::T + lp::Cint + wp::Cint + mp::Cint + ldiag::Cint + btf::Cint + struct_::Cint + maxit::Cint + factor_blocking::Cint + solve_blas::Cint + pivoting::Cint + diagonal_pivoting::Cint + fill_in::Cint + switch_mode::Cint end function ma48_default_control_s(control) - @ccall libhsl.ma48_default_control_s(control::Ref{ma48_control{Float32}})::Cvoid + @ccall libhsl.ma48_default_control_s(control::Ref{ma48_control{Float32}})::Cvoid end mutable struct ma48_ainfo{T} - ops::T - flag::Cint - more::Cint - lena_analyse::Clong - lenj_analyse::Clong - lena_factorize::Clong - leni_factorize::Clong - ncmpa::Cint - rank::Cint - drop::Clong - struc_rank::Cint - oor::Clong - dup::Clong - stat::Cint - lblock::Cint - sblock::Cint - tblock::Clong + ops::T + flag::Cint + more::Cint + lena_analyse::Clong + lenj_analyse::Clong + lena_factorize::Clong + leni_factorize::Clong + ncmpa::Cint + rank::Cint + drop::Clong + struc_rank::Cint + oor::Clong + dup::Clong + stat::Cint + lblock::Cint + sblock::Cint + tblock::Clong end mutable struct ma48_finfo{T} - ops::T - flag::Cint - more::Cint - size_factor::Clong - lena_factorize::Clong - leni_factorize::Clong - drop::Clong - rank::Cint - stat::Cint -end - -function ma48_analyse_s(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, - endcol) - @ccall libhsl.ma48_analyse_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, - col::Ptr{Cint}, val::Ptr{Float32}, - factors::Ptr{Cvoid}, control::Ref{ma48_control{Float32}}, - ainfo::Ref{ma48_ainfo{Float32}}, finfo::Ref{ma48_finfo{Float32}}, - perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid + ops::T + flag::Cint + more::Cint + size_factor::Clong + lena_factorize::Clong + leni_factorize::Clong + drop::Clong + rank::Cint + stat::Cint +end + +function ma48_analyse_s(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, endcol) + @ccall libhsl.ma48_analyse_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, factors::Ptr{Cvoid}, + control::Ref{ma48_control{Float32}}, ainfo::Ref{ma48_ainfo{Float32}}, + finfo::Ref{ma48_finfo{Float32}}, perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid end function ma48_get_perm_s(m, n, factors, perm, control) - @ccall libhsl.ma48_get_perm_s(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, - control::Ref{ma48_control{Float32}})::Cvoid + @ccall libhsl.ma48_get_perm_s(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, + control::Ref{ma48_control{Float32}})::Cvoid end function ma48_factorize_s(m, n, ne, row, col, val, factors, control, finfo, fast, partial) - @ccall libhsl.ma48_factorize_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, - col::Ptr{Cint}, val::Ptr{Float32}, - factors::Ptr{Cvoid}, control::Ref{ma48_control{Float32}}, - finfo::Ref{ma48_finfo{Float32}}, fast::Cint, - partial::Cint)::Cvoid + @ccall libhsl.ma48_factorize_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, factors::Ptr{Cvoid}, + control::Ref{ma48_control{Float32}}, finfo::Ref{ma48_finfo{Float32}}, fast::Cint, + partial::Cint)::Cvoid end mutable struct ma48_sinfo - flag::Cint - more::Cint - stat::Cint + flag::Cint + more::Cint + stat::Cint end -function ma48_solve_s(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, - resid, error) - @ccall libhsl.ma48_solve_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, factors::Ptr{Cvoid}, - rhs::Ptr{Float32}, x::Ptr{Float32}, - control::Ref{ma48_control{Float32}}, sinfo::Ref{ma48_sinfo}, - trans::Cint, resid::Ptr{Float32}, - error::Ptr{Float32})::Cvoid +function ma48_solve_s(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, resid, error) + @ccall libhsl.ma48_solve_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, factors::Ptr{Cvoid}, + rhs::Ptr{Float32}, x::Ptr{Float32}, + control::Ref{ma48_control{Float32}}, sinfo::Ref{ma48_sinfo}, trans::Cint, + resid::Ptr{Float32}, error::Ptr{Float32})::Cvoid end function ma48_finalize_s(factors, control) - @ccall libhsl.ma48_finalize_s(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma48_control{Float32}})::Cint + @ccall libhsl.ma48_finalize_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma48_control{Float32}})::Cint end function ma48_special_rows_and_cols_s(factors, rank, rows, cols, control) - @ccall libhsl.ma48_special_rows_and_cols_s(factors::Ptr{Cvoid}, rank::Ptr{Cint}, - rows::Ptr{Cint}, cols::Ptr{Cint}, - control::Ref{ma48_control{Float32}})::Cint + @ccall libhsl.ma48_special_rows_and_cols_s(factors::Ptr{Cvoid}, rank::Ptr{Cint}, rows::Ptr{Cint}, + cols::Ptr{Cint}, control::Ref{ma48_control{Float32}})::Cint end function ma48_determinant_s(factors, sgndet, logdet, control) - @ccall libhsl.ma48_determinant_s(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, - logdet::Ptr{Float32}, - control::Ref{ma48_control{Float32}})::Cint + @ccall libhsl.ma48_determinant_s(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, + logdet::Ptr{Float32}, control::Ref{ma48_control{Float32}})::Cint end function ma48_initialize_d(factors) - @ccall libhsl.ma48_initialize_d(factors::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma48_initialize_d(factors::Ptr{Ptr{Cvoid}})::Cvoid end function ma48_default_control_d(control) - @ccall libhsl.ma48_default_control_d(control::Ref{ma48_control{Float64}})::Cvoid + @ccall libhsl.ma48_default_control_d(control::Ref{ma48_control{Float64}})::Cvoid end -function ma48_analyse_d(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, - endcol) - @ccall libhsl.ma48_analyse_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, - col::Ptr{Cint}, val::Ptr{Float64}, - factors::Ptr{Cvoid}, control::Ref{ma48_control{Float64}}, - ainfo::Ref{ma48_ainfo{Float64}}, finfo::Ref{ma48_finfo{Float64}}, - perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid +function ma48_analyse_d(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, endcol) + @ccall libhsl.ma48_analyse_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, factors::Ptr{Cvoid}, + control::Ref{ma48_control{Float64}}, ainfo::Ref{ma48_ainfo{Float64}}, + finfo::Ref{ma48_finfo{Float64}}, perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid end function ma48_get_perm_d(m, n, factors, perm, control) - @ccall libhsl.ma48_get_perm_d(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, - control::Ref{ma48_control{Float64}})::Cvoid + @ccall libhsl.ma48_get_perm_d(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, + control::Ref{ma48_control{Float64}})::Cvoid end function ma48_factorize_d(m, n, ne, row, col, val, factors, control, finfo, fast, partial) - @ccall libhsl.ma48_factorize_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, - col::Ptr{Cint}, val::Ptr{Float64}, - factors::Ptr{Cvoid}, control::Ref{ma48_control{Float64}}, - finfo::Ref{ma48_finfo{Float64}}, fast::Cint, - partial::Cint)::Cvoid + @ccall libhsl.ma48_factorize_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, factors::Ptr{Cvoid}, + control::Ref{ma48_control{Float64}}, finfo::Ref{ma48_finfo{Float64}}, fast::Cint, + partial::Cint)::Cvoid end -function ma48_solve_d(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, - resid, error) - @ccall libhsl.ma48_solve_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, factors::Ptr{Cvoid}, - rhs::Ptr{Float64}, x::Ptr{Float64}, - control::Ref{ma48_control{Float64}}, sinfo::Ref{ma48_sinfo}, - trans::Cint, resid::Ptr{Float64}, - error::Ptr{Float64})::Cvoid +function ma48_solve_d(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, resid, error) + @ccall libhsl.ma48_solve_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, factors::Ptr{Cvoid}, + rhs::Ptr{Float64}, x::Ptr{Float64}, + control::Ref{ma48_control{Float64}}, sinfo::Ref{ma48_sinfo}, trans::Cint, + resid::Ptr{Float64}, error::Ptr{Float64})::Cvoid end function ma48_finalize_d(factors, control) - @ccall libhsl.ma48_finalize_d(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma48_control{Float64}})::Cint + @ccall libhsl.ma48_finalize_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma48_control{Float64}})::Cint end function ma48_special_rows_and_cols_d(factors, rank, rows, cols, control) - @ccall libhsl.ma48_special_rows_and_cols_d(factors::Ptr{Cvoid}, rank::Ptr{Cint}, - rows::Ptr{Cint}, cols::Ptr{Cint}, - control::Ref{ma48_control{Float64}})::Cint + @ccall libhsl.ma48_special_rows_and_cols_d(factors::Ptr{Cvoid}, rank::Ptr{Cint}, rows::Ptr{Cint}, + cols::Ptr{Cint}, control::Ref{ma48_control{Float64}})::Cint end function ma48_determinant_d(factors, sgndet, logdet, control) - @ccall libhsl.ma48_determinant_d(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, - logdet::Ptr{Float64}, - control::Ref{ma48_control{Float64}})::Cint + @ccall libhsl.ma48_determinant_d(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, + logdet::Ptr{Float64}, control::Ref{ma48_control{Float64}})::Cint end diff --git a/src/C/hsl_ma57.jl b/src/C/hsl_ma57.jl index d741742..254d0e6 100644 --- a/src/C/hsl_ma57.jl +++ b/src/C/hsl_ma57.jl @@ -1,301 +1,289 @@ mutable struct ma57_control{T} - f_arrays::Cint - multiplier::T - reduce::T - u::T - static_tolerance::T - static_level::T - tolerance::T - convergence::T - consist::T - lp::Cint - wp::Cint - mp::Cint - sp::Cint - ldiag::Cint - nemin::Cint - factorblocking::Cint - solveblocking::Cint - la::Cint - liw::Cint - maxla::Cint - maxliw::Cint - pivoting::Cint - thresh::Cint - ordering::Cint - scaling::Cint - rank_deficient::Cint - ispare::NTuple{5,Cint} - rspare::NTuple{10,T} + f_arrays::Cint + multiplier::T + reduce::T + u::T + static_tolerance::T + static_level::T + tolerance::T + convergence::T + consist::T + lp::Cint + wp::Cint + mp::Cint + sp::Cint + ldiag::Cint + nemin::Cint + factorblocking::Cint + solveblocking::Cint + la::Cint + liw::Cint + maxla::Cint + maxliw::Cint + pivoting::Cint + thresh::Cint + ordering::Cint + scaling::Cint + rank_deficient::Cint + ispare::NTuple{5,Cint} + rspare::NTuple{10,T} end function ma57_default_control_s(control) - @ccall libhsl.ma57_default_control_s(control::Ref{ma57_control{Float32}})::Cvoid + @ccall libhsl.ma57_default_control_s(control::Ref{ma57_control{Float32}})::Cvoid end function ma57_init_factors_s(factors) - @ccall libhsl.ma57_init_factors_s(factors::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma57_init_factors_s(factors::Ptr{Ptr{Cvoid}})::Cvoid end mutable struct ma57_ainfo{T} - opsa::T - opse::T - flag::Cint - more::Cint - nsteps::Cint - nrltot::Cint - nirtot::Cint - nrlnec::Cint - nirnec::Cint - nrladu::Cint - niradu::Cint - ncmpa::Cint - ordering::Cint - oor::Cint - dup::Cint - maxfrt::Cint - stat::Cint - ispare::NTuple{5,Cint} - rspare::NTuple{10,T} + opsa::T + opse::T + flag::Cint + more::Cint + nsteps::Cint + nrltot::Cint + nirtot::Cint + nrlnec::Cint + nirnec::Cint + nrladu::Cint + niradu::Cint + ncmpa::Cint + ordering::Cint + oor::Cint + dup::Cint + maxfrt::Cint + stat::Cint + ispare::NTuple{5,Cint} + rspare::NTuple{10,T} end function ma57_analyse_s(n, ne, row, col, factors, control, ainfo, perm) - @ccall libhsl.ma57_analyse_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, - ainfo::Ref{ma57_ainfo{Float32}}, perm::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_analyse_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + ainfo::Ref{ma57_ainfo{Float32}}, perm::Ptr{Cint})::Cvoid end mutable struct ma57_finfo{T} - opsa::T - opse::T - opsb::T - maxchange::T - smin::T - smax::T - flag::Cint - more::Cint - maxfrt::Cint - nebdu::Cint - nrlbdu::Cint - nirbdu::Cint - nrltot::Cint - nirtot::Cint - nrlnec::Cint - nirnec::Cint - ncmpbr::Cint - ncmpbi::Cint - ntwo::Cint - neig::Cint - delay::Cint - signc::Cint - static_::Cint - modstep::Cint - rank::Cint - stat::Cint - ispare::NTuple{5,Cint} - rspare::NTuple{10,T} + opsa::T + opse::T + opsb::T + maxchange::T + smin::T + smax::T + flag::Cint + more::Cint + maxfrt::Cint + nebdu::Cint + nrlbdu::Cint + nirbdu::Cint + nrltot::Cint + nirtot::Cint + nrlnec::Cint + nirnec::Cint + ncmpbr::Cint + ncmpbi::Cint + ntwo::Cint + neig::Cint + delay::Cint + signc::Cint + static_::Cint + modstep::Cint + rank::Cint + stat::Cint + ispare::NTuple{5,Cint} + rspare::NTuple{10,T} end function ma57_factorize_s(n, ne, row, col, val, factors, control, finfo) - @ccall libhsl.ma57_factorize_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float32}}, - finfo::Ref{ma57_finfo{Float32}})::Cvoid + @ccall libhsl.ma57_factorize_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, factors::Ptr{Ptr{Cvoid}}, + control::Ref{ma57_control{Float32}}, finfo::Ref{ma57_finfo{Float32}})::Cvoid end mutable struct ma57_sinfo{T} - cond::T - cond2::T - berr::T - berr2::T - error::T - flag::Cint - stat::Cint - ispare::NTuple{5,Cint} - rspare::NTuple{10,T} -end - -function ma57_solve_s(n, ne, row, col, val, factors, nrhs, x, control, sinfo, rhs, iter, - cond) - @ccall libhsl.ma57_solve_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, factors::Ptr{Ptr{Cvoid}}, - nrhs::Cint, x::Ptr{Float32}, - control::Ref{ma57_control{Float32}}, sinfo::Ref{ma57_sinfo{Float32}}, - rhs::Ptr{Float32}, iter::Cint, cond::Cint)::Cvoid + cond::T + cond2::T + berr::T + berr2::T + error::T + flag::Cint + stat::Cint + ispare::NTuple{5,Cint} + rspare::NTuple{10,T} +end + +function ma57_solve_s(n, ne, row, col, val, factors, nrhs, x, control, sinfo, rhs, iter, cond) + @ccall libhsl.ma57_solve_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, factors::Ptr{Ptr{Cvoid}}, nrhs::Cint, + x::Ptr{Float32}, control::Ref{ma57_control{Float32}}, + sinfo::Ref{ma57_sinfo{Float32}}, rhs::Ptr{Float32}, iter::Cint, + cond::Cint)::Cvoid end function ma57_finalize_s(factors, control, info) - @ccall libhsl.ma57_finalize_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_finalize_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + info::Ptr{Cint})::Cvoid end function ma57_enquire_perm_s(control, factors, perm) - @ccall libhsl.ma57_enquire_perm_s(control::Ref{ma57_control{Float32}}, - factors::Ptr{Ptr{Cvoid}}, perm::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_enquire_perm_s(control::Ref{ma57_control{Float32}}, factors::Ptr{Ptr{Cvoid}}, + perm::Ptr{Cint})::Cvoid end function ma57_enquire_pivots_s(control, factors, pivots) - @ccall libhsl.ma57_enquire_pivots_s(control::Ref{ma57_control{Float32}}, - factors::Ptr{Ptr{Cvoid}}, pivots::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_enquire_pivots_s(control::Ref{ma57_control{Float32}}, factors::Ptr{Ptr{Cvoid}}, + pivots::Ptr{Cint})::Cvoid end function ma57_enquire_d_s(factors, d) - @ccall libhsl.ma57_enquire_d_s(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float32})::Cvoid + @ccall libhsl.ma57_enquire_d_s(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float32})::Cvoid end function ma57_enquire_perturbation_s(factors, perturbation) - @ccall libhsl.ma57_enquire_perturbation_s(factors::Ptr{Ptr{Cvoid}}, - perturbation::Ptr{Float32})::Cvoid + @ccall libhsl.ma57_enquire_perturbation_s(factors::Ptr{Ptr{Cvoid}}, + perturbation::Ptr{Float32})::Cvoid end function ma57_enquire_scaling_s(factors, scaling) - @ccall libhsl.ma57_enquire_scaling_s(factors::Ptr{Ptr{Cvoid}}, - scaling::Ptr{Float32})::Cvoid + @ccall libhsl.ma57_enquire_scaling_s(factors::Ptr{Ptr{Cvoid}}, + scaling::Ptr{Float32})::Cvoid end function ma57_alter_d_s(factors, d, info) - @ccall libhsl.ma57_alter_d_s(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float32}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_alter_d_s(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float32}, + info::Ptr{Cint})::Cvoid end function ma57_part_solve_s(factors, control, part, nrhs, x, info) - @ccall libhsl.ma57_part_solve_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, - part::Cchar, nrhs::Cint, x::Ptr{Float32}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_part_solve_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + part::Cchar, nrhs::Cint, x::Ptr{Float32}, + info::Ptr{Cint})::Cvoid end function ma57_sparse_lsolve_s(factors, control, nzrhs, irhs, nzsoln, isoln, x, sinfo) - @ccall libhsl.ma57_sparse_lsolve_s(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float32}}, nzrhs::Cint, - irhs::Ptr{Cint}, nzsoln::Ptr{Cint}, isoln::Ptr{Cint}, - x::Ptr{Float32}, - sinfo::Ref{ma57_sinfo{Float32}})::Cvoid + @ccall libhsl.ma57_sparse_lsolve_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + nzrhs::Cint, irhs::Ptr{Cint}, nzsoln::Ptr{Cint}, + isoln::Ptr{Cint}, x::Ptr{Float32}, + sinfo::Ref{ma57_sinfo{Float32}})::Cvoid end function ma57_fredholm_alternative_s(factors, control, x, fredx, sinfo) - @ccall libhsl.ma57_fredholm_alternative_s(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float32}}, - x::Ptr{Float32}, - fredx::Ptr{Float32}, - sinfo::Ref{ma57_sinfo{Float32}})::Cvoid + @ccall libhsl.ma57_fredholm_alternative_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + x::Ptr{Float32}, fredx::Ptr{Float32}, + sinfo::Ref{ma57_sinfo{Float32}})::Cvoid end function ma57_lmultiply_s(factors, control, trans, x, y, sinfo) - @ccall libhsl.ma57_lmultiply_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, - trans::Cchar, x::Ptr{Float32}, - y::Ptr{Float32}, sinfo::Ref{ma57_sinfo{Float32}})::Cvoid -end - -function ma57_get_factors_s(factors, control, nzl, iptrl, lrows, lvals, nzd, iptrd, drows, - dvals, perm, invperm, scale, sinfo) - @ccall libhsl.ma57_get_factors_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, - nzl::Ptr{Cint}, iptrl::Ptr{Cint}, lrows::Ptr{Cint}, - lvals::Ptr{Float32}, nzd::Ptr{Cint}, - iptrd::Ptr{Cint}, drows::Ptr{Cint}, - dvals::Ptr{Float32}, perm::Ptr{Cint}, - invperm::Ptr{Cint}, scale::Ptr{Float32}, - sinfo::Ref{ma57_sinfo{Float32}})::Cvoid + @ccall libhsl.ma57_lmultiply_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + trans::Cchar, x::Ptr{Float32}, y::Ptr{Float32}, + sinfo::Ref{ma57_sinfo{Float32}})::Cvoid +end + +function ma57_get_factors_s(factors, control, nzl, iptrl, lrows, lvals, nzd, iptrd, drows, dvals, + perm, invperm, scale, sinfo) + @ccall libhsl.ma57_get_factors_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float32}}, + nzl::Ptr{Cint}, iptrl::Ptr{Cint}, lrows::Ptr{Cint}, + lvals::Ptr{Float32}, nzd::Ptr{Cint}, iptrd::Ptr{Cint}, + drows::Ptr{Cint}, dvals::Ptr{Float32}, perm::Ptr{Cint}, + invperm::Ptr{Cint}, scale::Ptr{Float32}, + sinfo::Ref{ma57_sinfo{Float32}})::Cvoid end function ma57_default_control_d(control) - @ccall libhsl.ma57_default_control_d(control::Ref{ma57_control{Float64}})::Cvoid + @ccall libhsl.ma57_default_control_d(control::Ref{ma57_control{Float64}})::Cvoid end function ma57_init_factors_d(factors) - @ccall libhsl.ma57_init_factors_d(factors::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma57_init_factors_d(factors::Ptr{Ptr{Cvoid}})::Cvoid end function ma57_analyse_d(n, ne, row, col, factors, control, ainfo, perm) - @ccall libhsl.ma57_analyse_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, - ainfo::Ref{ma57_ainfo{Float64}}, perm::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_analyse_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + ainfo::Ref{ma57_ainfo{Float64}}, perm::Ptr{Cint})::Cvoid end function ma57_factorize_d(n, ne, row, col, val, factors, control, finfo) - @ccall libhsl.ma57_factorize_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float64}}, - finfo::Ref{ma57_finfo{Float64}})::Cvoid + @ccall libhsl.ma57_factorize_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, factors::Ptr{Ptr{Cvoid}}, + control::Ref{ma57_control{Float64}}, finfo::Ref{ma57_finfo{Float64}})::Cvoid end -function ma57_solve_d(n, ne, row, col, val, factors, nrhs, x, control, sinfo, rhs, iter, - cond) - @ccall libhsl.ma57_solve_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, factors::Ptr{Ptr{Cvoid}}, - nrhs::Cint, x::Ptr{Float64}, - control::Ref{ma57_control{Float64}}, sinfo::Ref{ma57_sinfo{Float64}}, - rhs::Ptr{Float64}, iter::Cint, cond::Cint)::Cvoid +function ma57_solve_d(n, ne, row, col, val, factors, nrhs, x, control, sinfo, rhs, iter, cond) + @ccall libhsl.ma57_solve_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, factors::Ptr{Ptr{Cvoid}}, nrhs::Cint, + x::Ptr{Float64}, control::Ref{ma57_control{Float64}}, + sinfo::Ref{ma57_sinfo{Float64}}, rhs::Ptr{Float64}, iter::Cint, + cond::Cint)::Cvoid end function ma57_finalize_d(factors, control, info) - @ccall libhsl.ma57_finalize_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_finalize_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + info::Ptr{Cint})::Cvoid end function ma57_enquire_perm_d(control, factors, perm) - @ccall libhsl.ma57_enquire_perm_d(control::Ref{ma57_control{Float64}}, - factors::Ptr{Ptr{Cvoid}}, perm::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_enquire_perm_d(control::Ref{ma57_control{Float64}}, factors::Ptr{Ptr{Cvoid}}, + perm::Ptr{Cint})::Cvoid end function ma57_enquire_pivots_d(control, factors, pivots) - @ccall libhsl.ma57_enquire_pivots_d(control::Ref{ma57_control{Float64}}, - factors::Ptr{Ptr{Cvoid}}, pivots::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_enquire_pivots_d(control::Ref{ma57_control{Float64}}, factors::Ptr{Ptr{Cvoid}}, + pivots::Ptr{Cint})::Cvoid end function ma57_enquire_d_d(factors, d) - @ccall libhsl.ma57_enquire_d_d(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float64})::Cvoid + @ccall libhsl.ma57_enquire_d_d(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float64})::Cvoid end function ma57_enquire_perturbation_d(factors, perturbation) - @ccall libhsl.ma57_enquire_perturbation_d(factors::Ptr{Ptr{Cvoid}}, - perturbation::Ptr{Float64})::Cvoid + @ccall libhsl.ma57_enquire_perturbation_d(factors::Ptr{Ptr{Cvoid}}, + perturbation::Ptr{Float64})::Cvoid end function ma57_enquire_scaling_d(factors, scaling) - @ccall libhsl.ma57_enquire_scaling_d(factors::Ptr{Ptr{Cvoid}}, - scaling::Ptr{Float64})::Cvoid + @ccall libhsl.ma57_enquire_scaling_d(factors::Ptr{Ptr{Cvoid}}, + scaling::Ptr{Float64})::Cvoid end function ma57_alter_d_d(factors, d, info) - @ccall libhsl.ma57_alter_d_d(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float64}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_alter_d_d(factors::Ptr{Ptr{Cvoid}}, d::Ptr{Float64}, + info::Ptr{Cint})::Cvoid end function ma57_part_solve_d(factors, control, part, nrhs, x, info) - @ccall libhsl.ma57_part_solve_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, - part::Cchar, nrhs::Cint, x::Ptr{Float64}, - info::Ptr{Cint})::Cvoid + @ccall libhsl.ma57_part_solve_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + part::Cchar, nrhs::Cint, x::Ptr{Float64}, + info::Ptr{Cint})::Cvoid end function ma57_sparse_lsolve_d(factors, control, nzrhs, irhs, nzsoln, isoln, x, sinfo) - @ccall libhsl.ma57_sparse_lsolve_d(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float64}}, nzrhs::Cint, - irhs::Ptr{Cint}, nzsoln::Ptr{Cint}, isoln::Ptr{Cint}, - x::Ptr{Float64}, - sinfo::Ref{ma57_sinfo{Float64}})::Cvoid + @ccall libhsl.ma57_sparse_lsolve_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + nzrhs::Cint, irhs::Ptr{Cint}, nzsoln::Ptr{Cint}, + isoln::Ptr{Cint}, x::Ptr{Float64}, + sinfo::Ref{ma57_sinfo{Float64}})::Cvoid end function ma57_fredholm_alternative_d(factors, control, x, fredx, sinfo) - @ccall libhsl.ma57_fredholm_alternative_d(factors::Ptr{Ptr{Cvoid}}, - control::Ref{ma57_control{Float64}}, - x::Ptr{Float64}, - fredx::Ptr{Float64}, - sinfo::Ref{ma57_sinfo{Float64}})::Cvoid + @ccall libhsl.ma57_fredholm_alternative_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + x::Ptr{Float64}, fredx::Ptr{Float64}, + sinfo::Ref{ma57_sinfo{Float64}})::Cvoid end function ma57_lmultiply_d(factors, control, trans, x, y, sinfo) - @ccall libhsl.ma57_lmultiply_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, - trans::Cchar, x::Ptr{Float64}, - y::Ptr{Float64}, sinfo::Ref{ma57_sinfo{Float64}})::Cvoid -end - -function ma57_get_factors_d(factors, control, nzl, iptrl, lrows, lvals, nzd, iptrd, drows, - dvals, perm, invperm, scale, sinfo) - @ccall libhsl.ma57_get_factors_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, - nzl::Ptr{Cint}, iptrl::Ptr{Cint}, lrows::Ptr{Cint}, - lvals::Ptr{Float64}, nzd::Ptr{Cint}, - iptrd::Ptr{Cint}, drows::Ptr{Cint}, - dvals::Ptr{Float64}, perm::Ptr{Cint}, - invperm::Ptr{Cint}, scale::Ptr{Float64}, - sinfo::Ref{ma57_sinfo{Float64}})::Cvoid + @ccall libhsl.ma57_lmultiply_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + trans::Cchar, x::Ptr{Float64}, y::Ptr{Float64}, + sinfo::Ref{ma57_sinfo{Float64}})::Cvoid +end + +function ma57_get_factors_d(factors, control, nzl, iptrl, lrows, lvals, nzd, iptrd, drows, dvals, + perm, invperm, scale, sinfo) + @ccall libhsl.ma57_get_factors_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma57_control{Float64}}, + nzl::Ptr{Cint}, iptrl::Ptr{Cint}, lrows::Ptr{Cint}, + lvals::Ptr{Float64}, nzd::Ptr{Cint}, iptrd::Ptr{Cint}, + drows::Ptr{Cint}, dvals::Ptr{Float64}, perm::Ptr{Cint}, + invperm::Ptr{Cint}, scale::Ptr{Float64}, + sinfo::Ref{ma57_sinfo{Float64}})::Cvoid end diff --git a/src/C/hsl_ma77.jl b/src/C/hsl_ma77.jl index 528721d..592cb06 100644 --- a/src/C/hsl_ma77.jl +++ b/src/C/hsl_ma77.jl @@ -1,290 +1,278 @@ mutable struct ma77_control{T} - f_arrays::Cint - print_level::Cint - unit_diagnostics::Cint - unit_error::Cint - unit_warning::Cint - bits::Cint - buffer_lpage::NTuple{2,Cint} - buffer_npage::NTuple{2,Cint} - file_size::Clong - maxstore::Clong - storage::NTuple{3,Clong} - nemin::Cint - maxit::Cint - infnorm::Cint - thresh::T - nb54::Cint - action::Cint - multiplier::T - nb64::Cint - nbi::Cint - small::T - static_::T - storage_indef::Clong - u::T - umin::T - consist_tol::T - ispare::NTuple{5,Cint} - lspare::NTuple{5,Clong} - rspare::NTuple{5,T} + f_arrays::Cint + print_level::Cint + unit_diagnostics::Cint + unit_error::Cint + unit_warning::Cint + bits::Cint + buffer_lpage::NTuple{2,Cint} + buffer_npage::NTuple{2,Cint} + file_size::Clong + maxstore::Clong + storage::NTuple{3,Clong} + nemin::Cint + maxit::Cint + infnorm::Cint + thresh::T + nb54::Cint + action::Cint + multiplier::T + nb64::Cint + nbi::Cint + small::T + static_::T + storage_indef::Clong + u::T + umin::T + consist_tol::T + ispare::NTuple{5,Cint} + lspare::NTuple{5,Clong} + rspare::NTuple{5,T} end function ma77_default_control_s(control) - @ccall libhsl.ma77_default_control_s(control::Ref{ma77_control{Float32}})::Cvoid + @ccall libhsl.ma77_default_control_s(control::Ref{ma77_control{Float32}})::Cvoid end mutable struct ma77_info{T} - detlog::T - detsign::Cint - flag::Cint - iostat::Cint - matrix_dup::Cint - matrix_rank::Cint - matrix_outrange::Cint - maxdepth::Cint - maxfront::Cint - minstore::Clong - ndelay::Cint - nfactor::Clong - nflops::Clong - niter::Cint - nsup::Cint - num_neg::Cint - num_nothresh::Cint - num_perturbed::Cint - ntwo::Cint - stat::Cint - index::NTuple{4,Cint} - nio_read::NTuple{2,Clong} - nio_write::NTuple{2,Clong} - nwd_read::NTuple{2,Clong} - nwd_write::NTuple{2,Clong} - num_file::NTuple{4,Cint} - storage::NTuple{4,Clong} - tree_nodes::Cint - unit_restart::Cint - unused::Cint - usmall::T - ispare::NTuple{5,Cint} - lspare::NTuple{5,Clong} - rspare::NTuple{5,T} + detlog::T + detsign::Cint + flag::Cint + iostat::Cint + matrix_dup::Cint + matrix_rank::Cint + matrix_outrange::Cint + maxdepth::Cint + maxfront::Cint + minstore::Clong + ndelay::Cint + nfactor::Clong + nflops::Clong + niter::Cint + nsup::Cint + num_neg::Cint + num_nothresh::Cint + num_perturbed::Cint + ntwo::Cint + stat::Cint + index::NTuple{4,Cint} + nio_read::NTuple{2,Clong} + nio_write::NTuple{2,Clong} + nwd_read::NTuple{2,Clong} + nwd_write::NTuple{2,Clong} + num_file::NTuple{4,Cint} + storage::NTuple{4,Clong} + tree_nodes::Cint + unit_restart::Cint + unused::Cint + usmall::T + ispare::NTuple{5,Cint} + lspare::NTuple{5,Clong} + rspare::NTuple{5,T} end function ma77_open_nelt_s(n, fname1, fname2, fname3, fname4, keep, control, info, nelt) - @ccall libhsl.ma77_open_nelt_s(n::Cint, fname1::Cstring, fname2::Cstring, - fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - nelt::Cint)::Cvoid + @ccall libhsl.ma77_open_nelt_s(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, + fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + nelt::Cint)::Cvoid end function ma77_open_s(n, fname1, fname2, fname3, fname4, keep, control, info) - @ccall libhsl.ma77_open_s(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, - fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_open_s(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, + fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}})::Cvoid end function ma77_input_vars_s(idx, nvar, list, keep, control, info) - @ccall libhsl.ma77_input_vars_s(idx::Cint, nvar::Cint, list::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_input_vars_s(idx::Cint, nvar::Cint, list::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid end function ma77_input_reals_s(idx, length, reals, keep, control, info) - @ccall libhsl.ma77_input_reals_s(idx::Cint, length::Cint, reals::Ptr{Float32}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_input_reals_s(idx::Cint, length::Cint, reals::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}})::Cvoid end function ma77_analyse_s(order, keep, control, info) - @ccall libhsl.ma77_analyse_s(order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_analyse_s(order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid end function ma77_factor_s(posdef, keep, control, info, scale) - @ccall libhsl.ma77_factor_s(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_factor_s(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}}, scale::Ptr{Float32})::Cvoid end function ma77_factor_solve_s(posdef, keep, control, info, scale, nrhs, lx, rhs) - @ccall libhsl.ma77_factor_solve_s(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - scale::Ptr{Float32}, nrhs::Cint, lx::Cint, - rhs::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_factor_solve_s(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + scale::Ptr{Float32}, nrhs::Cint, lx::Cint, + rhs::Ptr{Float32})::Cvoid end function ma77_solve_s(job, nrhs, lx, x, keep, control, info, scale) - @ccall libhsl.ma77_solve_s(job::Cint, nrhs::Cint, lx::Cint, x::Ptr{Float32}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}}, scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_solve_s(job::Cint, nrhs::Cint, lx::Cint, x::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}}, scale::Ptr{Float32})::Cvoid end function ma77_resid_s(nrhs, lx, x, lresid, resid, keep, control, info, anorm_bnd) - @ccall libhsl.ma77_resid_s(nrhs::Cint, lx::Cint, x::Ptr{Float32}, lresid::Cint, - resid::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - anorm_bnd::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_resid_s(nrhs::Cint, lx::Cint, x::Ptr{Float32}, lresid::Cint, + resid::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + anorm_bnd::Ptr{Float32})::Cvoid end function ma77_scale_s(scale, keep, control, info, anorm) - @ccall libhsl.ma77_scale_s(scale::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - anorm::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_scale_s(scale::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + anorm::Ptr{Float32})::Cvoid end function ma77_enquire_posdef_s(d, keep, control, info) - @ccall libhsl.ma77_enquire_posdef_s(d::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_enquire_posdef_s(d::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid end function ma77_enquire_indef_s(piv_order, d, keep, control, info) - @ccall libhsl.ma77_enquire_indef_s(piv_order::Ptr{Cint}, d::Ptr{Float32}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_enquire_indef_s(piv_order::Ptr{Cint}, d::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}})::Cvoid end function ma77_alter_s(d, keep, control, info) - @ccall libhsl.ma77_alter_s(d::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_alter_s(d::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid end function ma77_restart_s(restart_file, fname1, fname2, fname3, fname4, keep, control, info) - @ccall libhsl.ma77_restart_s(restart_file::Cstring, fname1::Cstring, fname2::Cstring, - fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_restart_s(restart_file::Cstring, fname1::Cstring, fname2::Cstring, + fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}})::Cvoid end function ma77_finalise_s(keep, control, info) - @ccall libhsl.ma77_finalise_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}})::Cvoid + @ccall libhsl.ma77_finalise_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float32}}, + info::Ref{ma77_info{Float32}})::Cvoid end function ma77_solve_fredholm_s(nrhs, flag_out, lx, x, keep, control, info, scale) - @ccall libhsl.ma77_solve_fredholm_s(nrhs::Cint, flag_out::Ptr{Cint}, lx::Cint, - x::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, - info::Ref{ma77_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_solve_fredholm_s(nrhs::Cint, flag_out::Ptr{Cint}, lx::Cint, + x::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + scale::Ptr{Float32})::Cvoid end function ma77_lmultiply_s(trans, k, lx, x, ly, y, keep, control, info, scale) - @ccall libhsl.ma77_lmultiply_s(trans::Cint, k::Cint, lx::Cint, x::Ptr{Float32}, - ly::Cint, y::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma77_lmultiply_s(trans::Cint, k::Cint, lx::Cint, x::Ptr{Float32}, ly::Cint, + y::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float32}}, info::Ref{ma77_info{Float32}}, + scale::Ptr{Float32})::Cvoid end function ma77_default_control_d(control) - @ccall libhsl.ma77_default_control_d(control::Ref{ma77_control{Float64}})::Cvoid + @ccall libhsl.ma77_default_control_d(control::Ref{ma77_control{Float64}})::Cvoid end function ma77_open_nelt_d(n, fname1, fname2, fname3, fname4, keep, control, info, nelt) - @ccall libhsl.ma77_open_nelt_d(n::Cint, fname1::Cstring, fname2::Cstring, - fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - nelt::Cint)::Cvoid + @ccall libhsl.ma77_open_nelt_d(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, + fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + nelt::Cint)::Cvoid end function ma77_open_d(n, fname1, fname2, fname3, fname4, keep, control, info) - @ccall libhsl.ma77_open_d(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, - fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_open_d(n::Cint, fname1::Cstring, fname2::Cstring, fname3::Cstring, + fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}})::Cvoid end function ma77_input_vars_d(idx, nvar, list, keep, control, info) - @ccall libhsl.ma77_input_vars_d(idx::Cint, nvar::Cint, list::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_input_vars_d(idx::Cint, nvar::Cint, list::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid end function ma77_input_reals_d(idx, length, reals, keep, control, info) - @ccall libhsl.ma77_input_reals_d(idx::Cint, length::Cint, reals::Ptr{Float64}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_input_reals_d(idx::Cint, length::Cint, reals::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}})::Cvoid end function ma77_analyse_d(order, keep, control, info) - @ccall libhsl.ma77_analyse_d(order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_analyse_d(order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid end function ma77_factor_d(posdef, keep, control, info, scale) - @ccall libhsl.ma77_factor_d(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_factor_d(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}}, scale::Ptr{Float64})::Cvoid end function ma77_factor_solve_d(posdef, keep, control, info, scale, nrhs, lx, rhs) - @ccall libhsl.ma77_factor_solve_d(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - scale::Ptr{Float64}, nrhs::Cint, lx::Cint, - rhs::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_factor_solve_d(posdef::Cint, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + scale::Ptr{Float64}, nrhs::Cint, lx::Cint, + rhs::Ptr{Float64})::Cvoid end function ma77_solve_d(job, nrhs, lx, x, keep, control, info, scale) - @ccall libhsl.ma77_solve_d(job::Cint, nrhs::Cint, lx::Cint, x::Ptr{Float64}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}}, scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_solve_d(job::Cint, nrhs::Cint, lx::Cint, x::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}}, scale::Ptr{Float64})::Cvoid end function ma77_resid_d(nrhs, lx, x, lresid, resid, keep, control, info, anorm_bnd) - @ccall libhsl.ma77_resid_d(nrhs::Cint, lx::Cint, x::Ptr{Float64}, lresid::Cint, - resid::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - anorm_bnd::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_resid_d(nrhs::Cint, lx::Cint, x::Ptr{Float64}, lresid::Cint, + resid::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + anorm_bnd::Ptr{Float64})::Cvoid end function ma77_scale_d(scale, keep, control, info, anorm) - @ccall libhsl.ma77_scale_d(scale::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - anorm::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_scale_d(scale::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + anorm::Ptr{Float64})::Cvoid end function ma77_enquire_posdef_d(d, keep, control, info) - @ccall libhsl.ma77_enquire_posdef_d(d::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_enquire_posdef_d(d::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid end function ma77_enquire_indef_d(piv_order, d, keep, control, info) - @ccall libhsl.ma77_enquire_indef_d(piv_order::Ptr{Cint}, d::Ptr{Float64}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_enquire_indef_d(piv_order::Ptr{Cint}, d::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}})::Cvoid end function ma77_alter_d(d, keep, control, info) - @ccall libhsl.ma77_alter_d(d::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_alter_d(d::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid end function ma77_restart_d(restart_file, fname1, fname2, fname3, fname4, keep, control, info) - @ccall libhsl.ma77_restart_d(restart_file::Cstring, fname1::Cstring, fname2::Cstring, - fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_restart_d(restart_file::Cstring, fname1::Cstring, fname2::Cstring, + fname3::Cstring, fname4::Cstring, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}})::Cvoid end function ma77_finalise_d(keep, control, info) - @ccall libhsl.ma77_finalise_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}})::Cvoid + @ccall libhsl.ma77_finalise_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma77_control{Float64}}, + info::Ref{ma77_info{Float64}})::Cvoid end function ma77_solve_fredholm_d(nrhs, flag_out, lx, x, keep, control, info, scale) - @ccall libhsl.ma77_solve_fredholm_d(nrhs::Cint, flag_out::Ptr{Cint}, lx::Cint, - x::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, - info::Ref{ma77_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_solve_fredholm_d(nrhs::Cint, flag_out::Ptr{Cint}, lx::Cint, + x::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + scale::Ptr{Float64})::Cvoid end function ma77_lmultiply_d(trans, k, lx, x, ly, y, keep, control, info, scale) - @ccall libhsl.ma77_lmultiply_d(trans::Cint, k::Cint, lx::Cint, x::Ptr{Float64}, - ly::Cint, y::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma77_lmultiply_d(trans::Cint, k::Cint, lx::Cint, x::Ptr{Float64}, ly::Cint, + y::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma77_control{Float64}}, info::Ref{ma77_info{Float64}}, + scale::Ptr{Float64})::Cvoid end diff --git a/src/C/hsl_ma86.jl b/src/C/hsl_ma86.jl index ed546c6..5f39628 100644 --- a/src/C/hsl_ma86.jl +++ b/src/C/hsl_ma86.jl @@ -1,192 +1,176 @@ mutable struct ma86_control{T} - f_arrays::Cint - diagnostics_level::Cint - unit_diagnostics::Cint - unit_error::Cint - unit_warning::Cint - nemin::Cint - nb::Cint - action::Cint - nbi::Cint - pool_size::Cint - small_::T - static_::T - u::T - umin::T - scaling::Cint + f_arrays::Cint + diagnostics_level::Cint + unit_diagnostics::Cint + unit_error::Cint + unit_warning::Cint + nemin::Cint + nb::Cint + action::Cint + nbi::Cint + pool_size::Cint + small_::T + static_::T + u::T + umin::T + scaling::Cint end function ma86_default_control_s(control) - @ccall libhsl.ma86_default_control_s(control::Ref{ma86_control{Float32}})::Cvoid + @ccall libhsl.ma86_default_control_s(control::Ref{ma86_control{Float32}})::Cvoid end mutable struct ma86_info{T} - detlog::T - detsign::Cint - flag::Cint - matrix_rank::Cint - maxdepth::Cint - num_delay::Cint - num_factor::Clong - num_flops::Clong - num_neg::Cint - num_nodes::Cint - num_nothresh::Cint - num_perturbed::Cint - num_two::Cint - pool_size::Cint - stat::Cint - usmall::T + detlog::T + detsign::Cint + flag::Cint + matrix_rank::Cint + maxdepth::Cint + num_delay::Cint + num_factor::Clong + num_flops::Clong + num_neg::Cint + num_nodes::Cint + num_nothresh::Cint + num_perturbed::Cint + num_two::Cint + pool_size::Cint + stat::Cint + usmall::T end function ma86_analyse_s(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma86_analyse_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, - info::Ref{ma86_info{Float32}})::Cvoid + @ccall libhsl.ma86_analyse_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}})::Cvoid end function ma86_factor_s(n, ptr, row, val, order, keep, control, info, scale) - @ccall libhsl.ma86_factor_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, - info::Ref{ma86_info{Float32}}, scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma86_factor_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}}, scale::Ptr{Float32})::Cvoid end -function ma86_factor_solve_s(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x, - scale) - @ccall libhsl.ma86_factor_solve_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, - info::Ref{ma86_info{Float32}}, nrhs::Cint, ldx::Cint, - x::Ptr{Float32}, - scale::Ptr{Float32})::Cvoid +function ma86_factor_solve_s(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x, scale) + @ccall libhsl.ma86_factor_solve_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}}, nrhs::Cint, ldx::Cint, + x::Ptr{Float32}, scale::Ptr{Float32})::Cvoid end function ma86_solve_s(job, nrhs, ldx, x, order, keep, control, info, scale) - @ccall libhsl.ma86_solve_s(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float32}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float32}}, info::Ref{ma86_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma86_solve_s(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}}, scale::Ptr{Float32})::Cvoid end function ma86_finalise_s(keep, control) - @ccall libhsl.ma86_finalise_s(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float32}})::Cvoid + @ccall libhsl.ma86_finalise_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}})::Cvoid end function ma86_default_control_d(control) - @ccall libhsl.ma86_default_control_d(control::Ref{ma86_control{Float64}})::Cvoid + @ccall libhsl.ma86_default_control_d(control::Ref{ma86_control{Float64}})::Cvoid end function ma86_analyse_d(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma86_analyse_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, - info::Ref{ma86_info{Float64}})::Cvoid + @ccall libhsl.ma86_analyse_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}})::Cvoid end function ma86_factor_d(n, ptr, row, val, order, keep, control, info, scale) - @ccall libhsl.ma86_factor_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, - info::Ref{ma86_info{Float64}}, scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma86_factor_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}}, scale::Ptr{Float64})::Cvoid end -function ma86_factor_solve_d(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x, - scale) - @ccall libhsl.ma86_factor_solve_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, - info::Ref{ma86_info{Float64}}, nrhs::Cint, ldx::Cint, - x::Ptr{Float64}, - scale::Ptr{Float64})::Cvoid +function ma86_factor_solve_d(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x, scale) + @ccall libhsl.ma86_factor_solve_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}}, nrhs::Cint, ldx::Cint, + x::Ptr{Float64}, scale::Ptr{Float64})::Cvoid end function ma86_solve_d(job, nrhs, ldx, x, order, keep, control, info, scale) - @ccall libhsl.ma86_solve_d(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float64}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float64}}, info::Ref{ma86_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma86_solve_d(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}}, scale::Ptr{Float64})::Cvoid end function ma86_finalise_d(keep, control) - @ccall libhsl.ma86_finalise_d(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float64}})::Cvoid + @ccall libhsl.ma86_finalise_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}})::Cvoid end function ma86_default_control_c(control) - @ccall libhsl.ma86_default_control_c(control::Ref{ma86_control{Float32}})::Cvoid + @ccall libhsl.ma86_default_control_c(control::Ref{ma86_control{Float32}})::Cvoid end function ma86_analyse_c(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma86_analyse_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, - info::Ref{ma86_info{Float32}})::Cvoid + @ccall libhsl.ma86_analyse_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}})::Cvoid end function ma86_factor_c(matrix_type, n, ptr, row, val, order, keep, control, info, scale) - @ccall libhsl.ma86_factor_c(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, - info::Ref{ma86_info{Float32}}, scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma86_factor_c(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma86_control{Float32}}, info::Ref{ma86_info{Float32}}, + scale::Ptr{Float32})::Cvoid end -function ma86_factor_solve_c(matrix_type, n, ptr, row, val, order, keep, control, info, - nrhs, ldx, x, scale) - @ccall libhsl.ma86_factor_solve_c(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, - row::Ptr{Cint}, val::Ptr{ComplexF32}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float32}}, info::Ref{ma86_info{Float32}}, - nrhs::Cint, ldx::Cint, x::Ptr{ComplexF32}, - scale::Ptr{Float32})::Cvoid +function ma86_factor_solve_c(matrix_type, n, ptr, row, val, order, keep, control, info, nrhs, ldx, + x, scale) + @ccall libhsl.ma86_factor_solve_c(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}}, nrhs::Cint, ldx::Cint, + x::Ptr{ComplexF32}, scale::Ptr{Float32})::Cvoid end function ma86_solve_c(job, nrhs, ldx, x, order, keep, control, info, scale) - @ccall libhsl.ma86_solve_c(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF32}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float32}}, info::Ref{ma86_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma86_solve_c(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}}, + info::Ref{ma86_info{Float32}}, scale::Ptr{Float32})::Cvoid end function ma86_finalise_c(keep, control) - @ccall libhsl.ma86_finalise_c(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float32}})::Cvoid + @ccall libhsl.ma86_finalise_c(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float32}})::Cvoid end function ma86_default_control_z(control) - @ccall libhsl.ma86_default_control_z(control::Ref{ma86_control{Float64}})::Cvoid + @ccall libhsl.ma86_default_control_z(control::Ref{ma86_control{Float64}})::Cvoid end function ma86_analyse_z(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma86_analyse_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, - info::Ref{ma86_info{Float64}})::Cvoid + @ccall libhsl.ma86_analyse_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}})::Cvoid end function ma86_factor_z(matrix_type, n, ptr, row, val, order, keep, control, info, scale) - @ccall libhsl.ma86_factor_z(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, - info::Ref{ma86_info{Float64}}, scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma86_factor_z(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma86_control{Float64}}, info::Ref{ma86_info{Float64}}, + scale::Ptr{Float64})::Cvoid end -function ma86_factor_solve_z(matrix_type, n, ptr, row, val, order, keep, control, info, - nrhs, ldx, x, scale) - @ccall libhsl.ma86_factor_solve_z(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, - row::Ptr{Cint}, val::Ptr{ComplexF64}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float64}}, info::Ref{ma86_info{Float64}}, - nrhs::Cint, ldx::Cint, x::Ptr{ComplexF64}, - scale::Ptr{Float64})::Cvoid +function ma86_factor_solve_z(matrix_type, n, ptr, row, val, order, keep, control, info, nrhs, ldx, + x, scale) + @ccall libhsl.ma86_factor_solve_z(matrix_type::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}}, nrhs::Cint, ldx::Cint, + x::Ptr{ComplexF64}, scale::Ptr{Float64})::Cvoid end function ma86_solve_z(job, nrhs, ldx, x, order, keep, control, info, scale) - @ccall libhsl.ma86_solve_z(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF64}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float64}}, info::Ref{ma86_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma86_solve_z(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}}, + info::Ref{ma86_info{Float64}}, scale::Ptr{Float64})::Cvoid end function ma86_finalise_z(keep, control) - @ccall libhsl.ma86_finalise_z(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma86_control{Float64}})::Cvoid + @ccall libhsl.ma86_finalise_z(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma86_control{Float64}})::Cvoid end diff --git a/src/C/hsl_ma87.jl b/src/C/hsl_ma87.jl index c5d7266..62216cb 100644 --- a/src/C/hsl_ma87.jl +++ b/src/C/hsl_ma87.jl @@ -1,214 +1,194 @@ mutable struct ma87_control{T} - f_arrays::Cint - diagnostics_level::Cint - unit_diagnostics::Cint - unit_error::Cint - unit_warning::Cint - nemin::Cint - nb::Cint - pool_size::Cint - diag_zero_minus::T - diag_zero_plus::T - unused::NTuple{40,Cchar} + f_arrays::Cint + diagnostics_level::Cint + unit_diagnostics::Cint + unit_error::Cint + unit_warning::Cint + nemin::Cint + nb::Cint + pool_size::Cint + diag_zero_minus::T + diag_zero_plus::T + unused::NTuple{40,Cchar} end function ma87_default_control_s(control) - @ccall libhsl.ma87_default_control_s(control::Ref{ma87_control{Float32}})::Cvoid + @ccall libhsl.ma87_default_control_s(control::Ref{ma87_control{Float32}})::Cvoid end mutable struct ma87_info{T} - detlog::T - flag::Cint - maxdepth::Cint - num_factor::Clong - num_flops::Clong - num_nodes::Cint - pool_size::Cint - stat::Cint - num_zero::Cint - unused::NTuple{40,Cchar} + detlog::T + flag::Cint + maxdepth::Cint + num_factor::Clong + num_flops::Clong + num_nodes::Cint + pool_size::Cint + stat::Cint + num_zero::Cint + unused::NTuple{40,Cchar} end function ma87_analyse_s(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma87_analyse_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_analyse_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end function ma87_factor_s(n, ptr, row, val, order, keep, control, info) - @ccall libhsl.ma87_factor_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_factor_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end function ma87_factor_solve_s(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x) - @ccall libhsl.ma87_factor_solve_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}}, nrhs::Cint, ldx::Cint, - x::Ptr{Float32})::Cvoid + @ccall libhsl.ma87_factor_solve_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}}, nrhs::Cint, ldx::Cint, + x::Ptr{Float32})::Cvoid end function ma87_solve_s(job, nrhs, ldx, x, order, keep, control, info) - @ccall libhsl.ma87_solve_s(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float32}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}}, info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_solve_s(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end -function ma87_sparse_fwd_solve_s(nbi, bindex, b, order, invp, nxi, index, x, w, keep, - control, info) - @ccall libhsl.ma87_sparse_fwd_solve_s(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{Float32}, order::Ptr{Cint}, - invp::Ptr{Cint}, nxi::Ptr{Cint}, index::Ptr{Cint}, - x::Ptr{Float32}, w::Ptr{Float32}, - keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid +function ma87_sparse_fwd_solve_s(nbi, bindex, b, order, invp, nxi, index, x, w, keep, control, info) + @ccall libhsl.ma87_sparse_fwd_solve_s(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{Float32}, + order::Ptr{Cint}, invp::Ptr{Cint}, nxi::Ptr{Cint}, + index::Ptr{Cint}, x::Ptr{Float32}, + w::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma87_control{Float32}}, info::Ref{ma87_info{Float32}})::Cvoid end function ma87_finalise_s(keep, control) - @ccall libhsl.ma87_finalise_s(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}})::Cvoid + @ccall libhsl.ma87_finalise_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}})::Cvoid end function ma87_default_control_d(control) - @ccall libhsl.ma87_default_control_d(control::Ref{ma87_control{Float64}})::Cvoid + @ccall libhsl.ma87_default_control_d(control::Ref{ma87_control{Float64}})::Cvoid end function ma87_analyse_d(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma87_analyse_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_analyse_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end function ma87_factor_d(n, ptr, row, val, order, keep, control, info) - @ccall libhsl.ma87_factor_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_factor_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end function ma87_factor_solve_d(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x) - @ccall libhsl.ma87_factor_solve_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}}, nrhs::Cint, ldx::Cint, - x::Ptr{Float64})::Cvoid + @ccall libhsl.ma87_factor_solve_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}}, nrhs::Cint, ldx::Cint, + x::Ptr{Float64})::Cvoid end function ma87_solve_d(job, nrhs, ldx, x, order, keep, control, info) - @ccall libhsl.ma87_solve_d(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float64}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}}, info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_solve_d(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{Float64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end -function ma87_sparse_fwd_solve_d(nbi, bindex, b, order, invp, nxi, index, x, w, keep, - control, info) - @ccall libhsl.ma87_sparse_fwd_solve_d(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{Float64}, order::Ptr{Cint}, - invp::Ptr{Cint}, nxi::Ptr{Cint}, index::Ptr{Cint}, - x::Ptr{Float64}, w::Ptr{Float64}, - keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid +function ma87_sparse_fwd_solve_d(nbi, bindex, b, order, invp, nxi, index, x, w, keep, control, info) + @ccall libhsl.ma87_sparse_fwd_solve_d(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{Float64}, + order::Ptr{Cint}, invp::Ptr{Cint}, nxi::Ptr{Cint}, + index::Ptr{Cint}, x::Ptr{Float64}, + w::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma87_control{Float64}}, info::Ref{ma87_info{Float64}})::Cvoid end function ma87_finalise_d(keep, control) - @ccall libhsl.ma87_finalise_d(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}})::Cvoid + @ccall libhsl.ma87_finalise_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}})::Cvoid end function ma87_default_control_c(control) - @ccall libhsl.ma87_default_control_c(control::Ref{ma87_control{Float32}})::Cvoid + @ccall libhsl.ma87_default_control_c(control::Ref{ma87_control{Float32}})::Cvoid end function ma87_analyse_c(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma87_analyse_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_analyse_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end function ma87_factor_c(n, ptr, row, val, order, keep, control, info) - @ccall libhsl.ma87_factor_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_factor_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end function ma87_factor_solve_c(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x) - @ccall libhsl.ma87_factor_solve_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}}, nrhs::Cint, ldx::Cint, - x::Ptr{ComplexF32})::Cvoid + @ccall libhsl.ma87_factor_solve_c(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}}, nrhs::Cint, ldx::Cint, + x::Ptr{ComplexF32})::Cvoid end function ma87_solve_c(job, nrhs, ldx, x, order, keep, control, info) - @ccall libhsl.ma87_solve_c(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF32}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}}, info::Ref{ma87_info{Float32}})::Cvoid + @ccall libhsl.ma87_solve_c(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF32}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}}, + info::Ref{ma87_info{Float32}})::Cvoid end -function ma87_sparse_fwd_solve_c(nbi, bindex, b, order, invp, nxi, index, x, w, keep, - control, info) - @ccall libhsl.ma87_sparse_fwd_solve_c(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{ComplexF32}, order::Ptr{Cint}, - invp::Ptr{Cint}, nxi::Ptr{Cint}, index::Ptr{Cint}, - x::Ptr{ComplexF32}, w::Ptr{ComplexF32}, - keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}}, - info::Ref{ma87_info{Float32}})::Cvoid +function ma87_sparse_fwd_solve_c(nbi, bindex, b, order, invp, nxi, index, x, w, keep, control, info) + @ccall libhsl.ma87_sparse_fwd_solve_c(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{ComplexF32}, + order::Ptr{Cint}, invp::Ptr{Cint}, nxi::Ptr{Cint}, + index::Ptr{Cint}, x::Ptr{ComplexF32}, + w::Ptr{ComplexF32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma87_control{Float32}}, info::Ref{ma87_info{Float32}})::Cvoid end function ma87_finalise_c(keep, control) - @ccall libhsl.ma87_finalise_c(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float32}})::Cvoid + @ccall libhsl.ma87_finalise_c(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float32}})::Cvoid end function ma87_default_control_z(control) - @ccall libhsl.ma87_default_control_z(control::Ref{ma87_control{Float64}})::Cvoid + @ccall libhsl.ma87_default_control_z(control::Ref{ma87_control{Float64}})::Cvoid end function ma87_analyse_z(n, ptr, row, order, keep, control, info) - @ccall libhsl.ma87_analyse_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_analyse_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end function ma87_factor_z(n, ptr, row, val, order, keep, control, info) - @ccall libhsl.ma87_factor_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_factor_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end function ma87_factor_solve_z(n, ptr, row, val, order, keep, control, info, nrhs, ldx, x) - @ccall libhsl.ma87_factor_solve_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, order::Ptr{Cint}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}}, nrhs::Cint, ldx::Cint, - x::Ptr{ComplexF64})::Cvoid + @ccall libhsl.ma87_factor_solve_z(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, order::Ptr{Cint}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}}, nrhs::Cint, ldx::Cint, + x::Ptr{ComplexF64})::Cvoid end function ma87_solve_z(job, nrhs, ldx, x, order, keep, control, info) - @ccall libhsl.ma87_solve_z(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF64}, - order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}}, info::Ref{ma87_info{Float64}})::Cvoid + @ccall libhsl.ma87_solve_z(job::Cint, nrhs::Cint, ldx::Cint, x::Ptr{ComplexF64}, + order::Ptr{Cint}, keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}}, + info::Ref{ma87_info{Float64}})::Cvoid end -function ma87_sparse_fwd_solve_z(nbi, bindex, b, order, invp, nxi, index, x, w, keep, - control, info) - @ccall libhsl.ma87_sparse_fwd_solve_z(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{ComplexF64}, order::Ptr{Cint}, - invp::Ptr{Cint}, nxi::Ptr{Cint}, index::Ptr{Cint}, - x::Ptr{ComplexF64}, w::Ptr{ComplexF64}, - keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}}, - info::Ref{ma87_info{Float64}})::Cvoid +function ma87_sparse_fwd_solve_z(nbi, bindex, b, order, invp, nxi, index, x, w, keep, control, info) + @ccall libhsl.ma87_sparse_fwd_solve_z(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{ComplexF64}, + order::Ptr{Cint}, invp::Ptr{Cint}, nxi::Ptr{Cint}, + index::Ptr{Cint}, x::Ptr{ComplexF64}, + w::Ptr{ComplexF64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{ma87_control{Float64}}, info::Ref{ma87_info{Float64}})::Cvoid end function ma87_finalise_z(keep, control) - @ccall libhsl.ma87_finalise_z(keep::Ptr{Ptr{Cvoid}}, - control::Ref{ma87_control{Float64}})::Cvoid + @ccall libhsl.ma87_finalise_z(keep::Ptr{Ptr{Cvoid}}, control::Ref{ma87_control{Float64}})::Cvoid end diff --git a/src/C/hsl_ma97.jl b/src/C/hsl_ma97.jl index ca76f56..a3bb894 100644 --- a/src/C/hsl_ma97.jl +++ b/src/C/hsl_ma97.jl @@ -1,440 +1,404 @@ mutable struct ma97_control{T} - f_arrays::Cint - action::Cint - nemin::Cint - multiplier::T - ordering::Cint - print_level::Cint - scaling::Cint - small::T - u::T - unit_diagnostics::Cint - unit_error::Cint - unit_warning::Cint - factor_min::Clong - solve_blas3::Cint - solve_min::Clong - solve_mf::Cint - consist_tol::T - ispare::NTuple{5,Cint} - rspare::NTuple{10,T} + f_arrays::Cint + action::Cint + nemin::Cint + multiplier::T + ordering::Cint + print_level::Cint + scaling::Cint + small::T + u::T + unit_diagnostics::Cint + unit_error::Cint + unit_warning::Cint + factor_min::Clong + solve_blas3::Cint + solve_min::Clong + solve_mf::Cint + consist_tol::T + ispare::NTuple{5,Cint} + rspare::NTuple{10,T} end function ma97_default_control_s(control) - @ccall libhsl.ma97_default_control_s(control::Ref{ma97_control{Float32}})::Cvoid + @ccall libhsl.ma97_default_control_s(control::Ref{ma97_control{Float32}})::Cvoid end mutable struct ma97_info{T} - flag::Cint - flag68::Cint - flag77::Cint - matrix_dup::Cint - matrix_rank::Cint - matrix_outrange::Cint - matrix_missing_diag::Cint - maxdepth::Cint - maxfront::Cint - num_delay::Cint - num_factor::Clong - num_flops::Clong - num_neg::Cint - num_sup::Cint - num_two::Cint - ordering::Cint - stat::Cint - maxsupernode::Cint - ispare::NTuple{4,Cint} - rspare::NTuple{10,T} + flag::Cint + flag68::Cint + flag77::Cint + matrix_dup::Cint + matrix_rank::Cint + matrix_outrange::Cint + matrix_missing_diag::Cint + maxdepth::Cint + maxfront::Cint + num_delay::Cint + num_factor::Clong + num_flops::Clong + num_neg::Cint + num_sup::Cint + num_two::Cint + ordering::Cint + stat::Cint + maxsupernode::Cint + ispare::NTuple{4,Cint} + rspare::NTuple{10,T} end function ma97_analyse_s(check, n, ptr, row, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_s(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_s(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + order::Ptr{Cint})::Cvoid end function ma97_analyse_coord_s(n, ne, row, col, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_coord_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_coord_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + order::Ptr{Cint})::Cvoid end function ma97_factor_s(matrix_type, ptr, row, val, akeep, fkeep, control, info, scale) - @ccall libhsl.ma97_factor_s(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}}, scale::Ptr{Float32})::Cvoid -end - -function ma97_factor_solve_s(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, - control, info, scale) - @ccall libhsl.ma97_factor_solve_s(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, nrhs::Cint, - x::Ptr{Float32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma97_factor_s(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}}, scale::Ptr{Float32})::Cvoid +end + +function ma97_factor_solve_s(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, control, info, + scale) + @ccall libhsl.ma97_factor_solve_s(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32}, nrhs::Cint, x::Ptr{Float32}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + scale::Ptr{Float32})::Cvoid end function ma97_solve_s(job, nrhs, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_s(job::Cint, nrhs::Cint, x::Ptr{Float32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_solve_s(job::Cint, nrhs::Cint, x::Ptr{Float32}, ldx::Cint, + akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_free_akeep_s(akeep) - @ccall libhsl.ma97_free_akeep_s(akeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_akeep_s(akeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_free_fkeep_s(fkeep) - @ccall libhsl.ma97_free_fkeep_s(fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_fkeep_s(fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_finalise_s(akeep, fkeep) - @ccall libhsl.ma97_finalise_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_finalise_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_enquire_posdef_s(akeep, fkeep, control, info, d) - @ccall libhsl.ma97_enquire_posdef_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}}, - d::Ptr{Float32})::Cvoid + @ccall libhsl.ma97_enquire_posdef_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + d::Ptr{Float32})::Cvoid end function ma97_enquire_indef_s(akeep, fkeep, control, info, piv_order, d) - @ccall libhsl.ma97_enquire_indef_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - piv_order::Ptr{Cint}, d::Ptr{Float32})::Cvoid + @ccall libhsl.ma97_enquire_indef_s(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + piv_order::Ptr{Cint}, d::Ptr{Float32})::Cvoid end function ma97_alter_s(d, akeep, fkeep, control, info) - @ccall libhsl.ma97_alter_s(d::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_alter_s(d::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_solve_fredholm_s(nrhs, flag_out, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_fredholm_s(nrhs::Cint, flag_out::Ptr{Cint}, - x::Ptr{Float32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_solve_fredholm_s(nrhs::Cint, flag_out::Ptr{Cint}, x::Ptr{Float32}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_lmultiply_s(trans, k, x, ldx, y, ldy, akeep, fkeep, control, info) - @ccall libhsl.ma97_lmultiply_s(trans::Cint, k::Cint, x::Ptr{Float32}, ldx::Cint, - y::Ptr{Float32}, ldy::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_lmultiply_s(trans::Cint, k::Cint, x::Ptr{Float32}, ldx::Cint, + y::Ptr{Float32}, ldy::Cint, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}})::Cvoid end -function ma97_sparse_fwd_solve_s(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, - control, info) - @ccall libhsl.ma97_sparse_fwd_solve_s(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{Float32}, order::Ptr{Cint}, - nxi::Ptr{Cint}, xindex::Ptr{Cint}, - x::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid +function ma97_sparse_fwd_solve_s(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, control, info) + @ccall libhsl.ma97_sparse_fwd_solve_s(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{Float32}, + order::Ptr{Cint}, nxi::Ptr{Cint}, xindex::Ptr{Cint}, + x::Ptr{Float32}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}})::Cvoid end function ma97_default_control_d(control) - @ccall libhsl.ma97_default_control_d(control::Ref{ma97_control{Float64}})::Cvoid + @ccall libhsl.ma97_default_control_d(control::Ref{ma97_control{Float64}})::Cvoid end function ma97_analyse_d(check, n, ptr, row, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_d(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_d(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + order::Ptr{Cint})::Cvoid end function ma97_analyse_coord_d(n, ne, row, col, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_coord_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_coord_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + order::Ptr{Cint})::Cvoid end function ma97_factor_d(matrix_type, ptr, row, val, akeep, fkeep, control, info, scale) - @ccall libhsl.ma97_factor_d(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}}, scale::Ptr{Float64})::Cvoid -end - -function ma97_factor_solve_d(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, - control, info, scale) - @ccall libhsl.ma97_factor_solve_d(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, nrhs::Cint, - x::Ptr{Float64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma97_factor_d(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}}, scale::Ptr{Float64})::Cvoid +end + +function ma97_factor_solve_d(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, control, info, + scale) + @ccall libhsl.ma97_factor_solve_d(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64}, nrhs::Cint, x::Ptr{Float64}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + scale::Ptr{Float64})::Cvoid end function ma97_solve_d(job, nrhs, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_d(job::Cint, nrhs::Cint, x::Ptr{Float64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_solve_d(job::Cint, nrhs::Cint, x::Ptr{Float64}, ldx::Cint, + akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_free_akeep_d(akeep) - @ccall libhsl.ma97_free_akeep_d(akeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_akeep_d(akeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_free_fkeep_d(fkeep) - @ccall libhsl.ma97_free_fkeep_d(fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_fkeep_d(fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_finalise_d(akeep, fkeep) - @ccall libhsl.ma97_finalise_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_finalise_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_enquire_posdef_d(akeep, fkeep, control, info, d) - @ccall libhsl.ma97_enquire_posdef_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}}, - d::Ptr{Float64})::Cvoid + @ccall libhsl.ma97_enquire_posdef_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + d::Ptr{Float64})::Cvoid end function ma97_enquire_indef_d(akeep, fkeep, control, info, piv_order, d) - @ccall libhsl.ma97_enquire_indef_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - piv_order::Ptr{Cint}, d::Ptr{Float64})::Cvoid + @ccall libhsl.ma97_enquire_indef_d(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + piv_order::Ptr{Cint}, d::Ptr{Float64})::Cvoid end function ma97_alter_d(d, akeep, fkeep, control, info) - @ccall libhsl.ma97_alter_d(d::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_alter_d(d::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_solve_fredholm_d(nrhs, flag_out, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_fredholm_d(nrhs::Cint, flag_out::Ptr{Cint}, - x::Ptr{Float64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_solve_fredholm_d(nrhs::Cint, flag_out::Ptr{Cint}, x::Ptr{Float64}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_lmultiply_d(trans, k, x, ldx, y, ldy, akeep, fkeep, control, info) - @ccall libhsl.ma97_lmultiply_d(trans::Cint, k::Cint, x::Ptr{Float64}, ldx::Cint, - y::Ptr{Float64}, ldy::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_lmultiply_d(trans::Cint, k::Cint, x::Ptr{Float64}, ldx::Cint, + y::Ptr{Float64}, ldy::Cint, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}})::Cvoid end -function ma97_sparse_fwd_solve_d(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, - control, info) - @ccall libhsl.ma97_sparse_fwd_solve_d(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{Float64}, order::Ptr{Cint}, - nxi::Ptr{Cint}, xindex::Ptr{Cint}, - x::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid +function ma97_sparse_fwd_solve_d(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, control, info) + @ccall libhsl.ma97_sparse_fwd_solve_d(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{Float64}, + order::Ptr{Cint}, nxi::Ptr{Cint}, xindex::Ptr{Cint}, + x::Ptr{Float64}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}})::Cvoid end function ma97_default_control_c(control) - @ccall libhsl.ma97_default_control_c(control::Ref{ma97_control{Float32}})::Cvoid + @ccall libhsl.ma97_default_control_c(control::Ref{ma97_control{Float32}})::Cvoid end function ma97_analyse_c(check, n, ptr, row, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_c(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_c(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + order::Ptr{Cint})::Cvoid end function ma97_analyse_coord_c(n, ne, row, col, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_coord_c(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_coord_c(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + order::Ptr{Cint})::Cvoid end function ma97_factor_c(matrix_type, ptr, row, val, akeep, fkeep, control, info, scale) - @ccall libhsl.ma97_factor_c(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}}, scale::Ptr{Float32})::Cvoid -end - -function ma97_factor_solve_c(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, - control, info, scale) - @ccall libhsl.ma97_factor_solve_c(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, nrhs::Cint, - x::Ptr{ComplexF32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - scale::Ptr{Float32})::Cvoid + @ccall libhsl.ma97_factor_c(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}}, scale::Ptr{Float32})::Cvoid +end + +function ma97_factor_solve_c(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, control, info, + scale) + @ccall libhsl.ma97_factor_solve_c(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32}, nrhs::Cint, x::Ptr{ComplexF32}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + scale::Ptr{Float32})::Cvoid end function ma97_solve_c(job, nrhs, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_c(job::Cint, nrhs::Cint, x::Ptr{ComplexF32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_solve_c(job::Cint, nrhs::Cint, x::Ptr{ComplexF32}, ldx::Cint, + akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_free_akeep_c(akeep) - @ccall libhsl.ma97_free_akeep_c(akeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_akeep_c(akeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_free_fkeep_c(fkeep) - @ccall libhsl.ma97_free_fkeep_c(fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_fkeep_c(fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_finalise_c(akeep, fkeep) - @ccall libhsl.ma97_finalise_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_finalise_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_enquire_posdef_c(akeep, fkeep, control, info, d) - @ccall libhsl.ma97_enquire_posdef_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}}, - d::Ptr{Float32})::Cvoid + @ccall libhsl.ma97_enquire_posdef_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + d::Ptr{Float32})::Cvoid end function ma97_enquire_indef_c(akeep, fkeep, control, info, piv_order, d) - @ccall libhsl.ma97_enquire_indef_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, - piv_order::Ptr{Cint}, d::Ptr{ComplexF32})::Cvoid + @ccall libhsl.ma97_enquire_indef_c(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}}, + piv_order::Ptr{Cint}, d::Ptr{ComplexF32})::Cvoid end function ma97_alter_c(d, akeep, fkeep, control, info) - @ccall libhsl.ma97_alter_c(d::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_alter_c(d::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_solve_fredholm_c(nrhs, flag_out, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_fredholm_c(nrhs::Cint, flag_out::Ptr{Cint}, - x::Ptr{ComplexF32}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_solve_fredholm_c(nrhs::Cint, flag_out::Ptr{Cint}, x::Ptr{ComplexF32}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float32}}, info::Ref{ma97_info{Float32}})::Cvoid end function ma97_lmultiply_c(trans, k, x, ldx, y, ldy, akeep, fkeep, control, info) - @ccall libhsl.ma97_lmultiply_c(trans::Cint, k::Cint, x::Ptr{ComplexF32}, ldx::Cint, - y::Ptr{ComplexF32}, ldy::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid + @ccall libhsl.ma97_lmultiply_c(trans::Cint, k::Cint, x::Ptr{ComplexF32}, ldx::Cint, + y::Ptr{ComplexF32}, ldy::Cint, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}})::Cvoid end -function ma97_sparse_fwd_solve_c(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, - control, info) - @ccall libhsl.ma97_sparse_fwd_solve_c(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{ComplexF32}, order::Ptr{Cint}, - nxi::Ptr{Cint}, xindex::Ptr{Cint}, - x::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float32}}, - info::Ref{ma97_info{Float32}})::Cvoid +function ma97_sparse_fwd_solve_c(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, control, info) + @ccall libhsl.ma97_sparse_fwd_solve_c(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{ComplexF32}, + order::Ptr{Cint}, nxi::Ptr{Cint}, xindex::Ptr{Cint}, + x::Ptr{ComplexF32}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float32}}, + info::Ref{ma97_info{Float32}})::Cvoid end function ma97_default_control_z(control) - @ccall libhsl.ma97_default_control_z(control::Ref{ma97_control{Float64}})::Cvoid + @ccall libhsl.ma97_default_control_z(control::Ref{ma97_control{Float64}})::Cvoid end function ma97_analyse_z(check, n, ptr, row, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_z(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_z(check::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + order::Ptr{Cint})::Cvoid end function ma97_analyse_coord_z(n, ne, row, col, val, akeep, control, info, order) - @ccall libhsl.ma97_analyse_coord_z(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - order::Ptr{Cint})::Cvoid + @ccall libhsl.ma97_analyse_coord_z(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + order::Ptr{Cint})::Cvoid end function ma97_factor_z(matrix_type, ptr, row, val, akeep, fkeep, control, info, scale) - @ccall libhsl.ma97_factor_z(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}}, scale::Ptr{Float64})::Cvoid -end - -function ma97_factor_solve_z(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, - control, info, scale) - @ccall libhsl.ma97_factor_solve_z(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, nrhs::Cint, - x::Ptr{ComplexF64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - scale::Ptr{Float64})::Cvoid + @ccall libhsl.ma97_factor_z(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}}, scale::Ptr{Float64})::Cvoid +end + +function ma97_factor_solve_z(matrix_type, ptr, row, val, nrhs, x, ldx, akeep, fkeep, control, info, + scale) + @ccall libhsl.ma97_factor_solve_z(matrix_type::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64}, nrhs::Cint, x::Ptr{ComplexF64}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + scale::Ptr{Float64})::Cvoid end function ma97_solve_z(job, nrhs, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_z(job::Cint, nrhs::Cint, x::Ptr{ComplexF64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_solve_z(job::Cint, nrhs::Cint, x::Ptr{ComplexF64}, ldx::Cint, + akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_free_akeep_z(akeep) - @ccall libhsl.ma97_free_akeep_z(akeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_akeep_z(akeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_free_fkeep_z(fkeep) - @ccall libhsl.ma97_free_fkeep_z(fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_free_fkeep_z(fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_finalise_z(akeep, fkeep) - @ccall libhsl.ma97_finalise_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid + @ccall libhsl.ma97_finalise_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}})::Cvoid end function ma97_enquire_posdef_z(akeep, fkeep, control, info, d) - @ccall libhsl.ma97_enquire_posdef_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}}, - d::Ptr{Float64})::Cvoid + @ccall libhsl.ma97_enquire_posdef_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + d::Ptr{Float64})::Cvoid end function ma97_enquire_indef_z(akeep, fkeep, control, info, piv_order, d) - @ccall libhsl.ma97_enquire_indef_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, - piv_order::Ptr{Cint}, d::Ptr{ComplexF64})::Cvoid + @ccall libhsl.ma97_enquire_indef_z(akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}}, + piv_order::Ptr{Cint}, d::Ptr{ComplexF64})::Cvoid end function ma97_alter_z(d, akeep, fkeep, control, info) - @ccall libhsl.ma97_alter_z(d::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_alter_z(d::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_solve_fredholm_z(nrhs, flag_out, x, ldx, akeep, fkeep, control, info) - @ccall libhsl.ma97_solve_fredholm_z(nrhs::Cint, flag_out::Ptr{Cint}, - x::Ptr{ComplexF64}, ldx::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_solve_fredholm_z(nrhs::Cint, flag_out::Ptr{Cint}, x::Ptr{ComplexF64}, + ldx::Cint, akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, + control::Ref{ma97_control{Float64}}, info::Ref{ma97_info{Float64}})::Cvoid end function ma97_lmultiply_z(trans, k, x, ldx, y, ldy, akeep, fkeep, control, info) - @ccall libhsl.ma97_lmultiply_z(trans::Cint, k::Cint, x::Ptr{ComplexF64}, ldx::Cint, - y::Ptr{ComplexF64}, ldy::Cint, - akeep::Ptr{Ptr{Cvoid}}, fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid -end - -function ma97_sparse_fwd_solve_z(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, - control, info) - @ccall libhsl.ma97_sparse_fwd_solve_z(nbi::Cint, bindex::Ptr{Cint}, - b::Ptr{ComplexF64}, order::Ptr{Cint}, - nxi::Ptr{Cint}, xindex::Ptr{Cint}, - x::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, - fkeep::Ptr{Ptr{Cvoid}}, - control::Ref{ma97_control{Float64}}, - info::Ref{ma97_info{Float64}})::Cvoid + @ccall libhsl.ma97_lmultiply_z(trans::Cint, k::Cint, x::Ptr{ComplexF64}, ldx::Cint, + y::Ptr{ComplexF64}, ldy::Cint, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}})::Cvoid +end + +function ma97_sparse_fwd_solve_z(nbi, bindex, b, order, nxi, xindex, x, akeep, fkeep, control, info) + @ccall libhsl.ma97_sparse_fwd_solve_z(nbi::Cint, bindex::Ptr{Cint}, b::Ptr{ComplexF64}, + order::Ptr{Cint}, nxi::Ptr{Cint}, xindex::Ptr{Cint}, + x::Ptr{ComplexF64}, akeep::Ptr{Ptr{Cvoid}}, + fkeep::Ptr{Ptr{Cvoid}}, control::Ref{ma97_control{Float64}}, + info::Ref{ma97_info{Float64}})::Cvoid end diff --git a/src/C/hsl_mc64.jl b/src/C/hsl_mc64.jl index 73d8f40..e713eb4 100644 --- a/src/C/hsl_mc64.jl +++ b/src/C/hsl_mc64.jl @@ -1,59 +1,59 @@ mutable struct mc64_control - f_arrays::Cint - lp::Cint - wp::Cint - sp::Cint - ldiag::Cint - checking::Cint + f_arrays::Cint + lp::Cint + wp::Cint + sp::Cint + ldiag::Cint + checking::Cint end function mc64_default_control_s(control) - @ccall libhsl.mc64_default_control_s(control::Ref{mc64_control})::Cvoid + @ccall libhsl.mc64_default_control_s(control::Ref{mc64_control})::Cvoid end mutable struct mc64_info - flag::Cint - more::Cint - strucrank::Cint - stat::Cint + flag::Cint + more::Cint + strucrank::Cint + stat::Cint end function mc64_matching_s(job, matrix_type, m, n, ptr, row, cval, control, info, perm, scale) - @ccall libhsl.mc64_matching_s(job::Cint, matrix_type::Cint, m::Cint, n::Cint, - ptr::Ptr{Cint}, row::Ptr{Cint}, cval::Ptr{Float32}, - control::Ref{mc64_control}, info::Ref{mc64_info}, - perm::Ptr{Cint}, scale::Ptr{Float32})::Cvoid + @ccall libhsl.mc64_matching_s(job::Cint, matrix_type::Cint, m::Cint, n::Cint, ptr::Ptr{Cint}, + row::Ptr{Cint}, cval::Ptr{Float32}, + control::Ref{mc64_control}, info::Ref{mc64_info}, + perm::Ptr{Cint}, scale::Ptr{Float32})::Cvoid end function mc64_default_control_d(control) - @ccall libhsl.mc64_default_control_d(control::Ref{mc64_control})::Cvoid + @ccall libhsl.mc64_default_control_d(control::Ref{mc64_control})::Cvoid end function mc64_matching_d(job, matrix_type, m, n, ptr, row, cval, control, info, perm, scale) - @ccall libhsl.mc64_matching_d(job::Cint, matrix_type::Cint, m::Cint, n::Cint, - ptr::Ptr{Cint}, row::Ptr{Cint}, cval::Ptr{Float64}, - control::Ref{mc64_control}, info::Ref{mc64_info}, - perm::Ptr{Cint}, scale::Ptr{Float64})::Cvoid + @ccall libhsl.mc64_matching_d(job::Cint, matrix_type::Cint, m::Cint, n::Cint, ptr::Ptr{Cint}, + row::Ptr{Cint}, cval::Ptr{Float64}, + control::Ref{mc64_control}, info::Ref{mc64_info}, + perm::Ptr{Cint}, scale::Ptr{Float64})::Cvoid end function mc64_default_control_c(control) - @ccall libhsl.mc64_default_control_c(control::Ref{mc64_control})::Cvoid + @ccall libhsl.mc64_default_control_c(control::Ref{mc64_control})::Cvoid end function mc64_matching_c(job, matrix_type, m, n, ptr, row, cval, control, info, perm, scale) - @ccall libhsl.mc64_matching_c(job::Cint, matrix_type::Cint, m::Cint, n::Cint, - ptr::Ptr{Cint}, row::Ptr{Cint}, cval::Ptr{ComplexF32}, - control::Ref{mc64_control}, info::Ref{mc64_info}, - perm::Ptr{Cint}, scale::Ptr{Float32})::Cvoid + @ccall libhsl.mc64_matching_c(job::Cint, matrix_type::Cint, m::Cint, n::Cint, ptr::Ptr{Cint}, + row::Ptr{Cint}, cval::Ptr{ComplexF32}, + control::Ref{mc64_control}, info::Ref{mc64_info}, + perm::Ptr{Cint}, scale::Ptr{Float32})::Cvoid end function mc64_default_control_z(control) - @ccall libhsl.mc64_default_control_z(control::Ref{mc64_control})::Cvoid + @ccall libhsl.mc64_default_control_z(control::Ref{mc64_control})::Cvoid end function mc64_matching_z(job, matrix_type, m, n, ptr, row, cval, control, info, perm, scale) - @ccall libhsl.mc64_matching_z(job::Cint, matrix_type::Cint, m::Cint, n::Cint, - ptr::Ptr{Cint}, row::Ptr{Cint}, cval::Ptr{ComplexF64}, - control::Ref{mc64_control}, info::Ref{mc64_info}, - perm::Ptr{Cint}, scale::Ptr{Float64})::Cvoid + @ccall libhsl.mc64_matching_z(job::Cint, matrix_type::Cint, m::Cint, n::Cint, ptr::Ptr{Cint}, + row::Ptr{Cint}, cval::Ptr{ComplexF64}, + control::Ref{mc64_control}, info::Ref{mc64_info}, + perm::Ptr{Cint}, scale::Ptr{Float64})::Cvoid end diff --git a/src/C/hsl_mc68.jl b/src/C/hsl_mc68.jl index 9c5b5c9..3eb4c76 100644 --- a/src/C/hsl_mc68.jl +++ b/src/C/hsl_mc68.jl @@ -1,35 +1,34 @@ mutable struct mc68_control - f_array_in::Cint - f_array_out::Cint - min_l_workspace::Cint - lp::Cint - wp::Cint - mp::Cint - nemin::Cint - print_level::Cint - row_full_thresh::Cint - row_search::Cint + f_array_in::Cint + f_array_out::Cint + min_l_workspace::Cint + lp::Cint + wp::Cint + mp::Cint + nemin::Cint + print_level::Cint + row_full_thresh::Cint + row_search::Cint end function mc68_default_control_i(control) - @ccall libhsl.mc68_default_control_i(control::Ref{mc68_control})::Cvoid + @ccall libhsl.mc68_default_control_i(control::Ref{mc68_control})::Cvoid end mutable struct mc68_info - flag::Cint - iostat::Cint - stat::Cint - out_range::Cint - duplicate::Cint - n_compressions::Cint - n_zero_eigs::Cint - l_workspace::Clong - zb01_info::Cint - n_dense_rows::Cint + flag::Cint + iostat::Cint + stat::Cint + out_range::Cint + duplicate::Cint + n_compressions::Cint + n_zero_eigs::Cint + l_workspace::Clong + zb01_info::Cint + n_dense_rows::Cint end function mc68_order_i(ord, n, ptr, row, perm, control, info) - @ccall libhsl.mc68_order_i(ord::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, control::Ref{mc68_control}, - info::Ref{mc68_info})::Cvoid + @ccall libhsl.mc68_order_i(ord::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, perm::Ptr{Cint}, + control::Ref{mc68_control}, info::Ref{mc68_info})::Cvoid end diff --git a/src/C/hsl_mc69.jl b/src/C/hsl_mc69.jl index b767e9b..5002482 100644 --- a/src/C/hsl_mc69.jl +++ b/src/C/hsl_mc69.jl @@ -1,426 +1,394 @@ @enum hsl_matrix_type::Int32 begin - HSL_MATRIX_UNDEFINED = 0 - HSL_MATRIX_REAL_RECT = 1 - HSL_MATRIX_REAL_UNSYM = 2 - HSL_MATRIX_REAL_SYM_PSDEF = 3 - HSL_MATRIX_REAL_SYM_INDEF = 4 - HSL_MATRIX_REAL_SKEW = 6 - HSL_MATRIX_CPLX_RECT = -1 - HSL_MATRIX_CPLX_UNSYM = -2 - HSL_MATRIX_CPLX_HERM_PSDEF = -3 - HSL_MATRIX_CPLX_HERM_INDEF = -4 - HSL_MATRIX_CPLX_SYM = -5 - HSL_MATRIX_CPLX_SKEW = -6 + HSL_MATRIX_UNDEFINED = 0 + HSL_MATRIX_REAL_RECT = 1 + HSL_MATRIX_REAL_UNSYM = 2 + HSL_MATRIX_REAL_SYM_PSDEF = 3 + HSL_MATRIX_REAL_SYM_INDEF = 4 + HSL_MATRIX_REAL_SKEW = 6 + HSL_MATRIX_CPLX_RECT = -1 + HSL_MATRIX_CPLX_UNSYM = -2 + HSL_MATRIX_CPLX_HERM_PSDEF = -3 + HSL_MATRIX_CPLX_HERM_INDEF = -4 + HSL_MATRIX_CPLX_SYM = -5 + HSL_MATRIX_CPLX_SKEW = -6 end function mc69_verify_s(unit, type, findex, m, n, ptr, row, val, more) - @ccall libhsl.mc69_verify_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, - n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, more::Ptr{Cint})::Cint + @ccall libhsl.mc69_verify_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + more::Ptr{Cint})::Cint end function mc69_print_s(unit, lines, type, findex, m, n, ptr, row, val) - @ccall libhsl.mc69_print_s(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32})::Cvoid + @ccall libhsl.mc69_print_s(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float32})::Cvoid end function mc69_set_values_s(type, lmap, map, val_in, ne, val_out) - @ccall libhsl.mc69_set_values_s(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, - val_in::Ptr{Float32}, ne::Cint, - val_out::Ptr{Float32})::Cvoid + @ccall libhsl.mc69_set_values_s(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, + val_in::Ptr{Float32}, ne::Cint, + val_out::Ptr{Float32})::Cvoid end function mc69_cscl_clean_s(unit, type, findex, m, n, ptr, row, val, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_clean_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Ptr{Cint}})::Cint + @ccall libhsl.mc69_cscl_clean_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Ptr{Cint}})::Cint end -function mc69_cscl_convert_s(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - row_in::Ptr{Cint}, val_in::Ptr{Float32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_cscu_convert_s(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, +function mc69_cscl_convert_s(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csclu_convert_s(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, - row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csclu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrl_convert_s(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrl_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{Float32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csru_convert_s(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_cscl_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_cscu_convert_s(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_cscu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csclu_convert_s(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csclu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrl_convert_s(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csru_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrlu_convert_s(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_csrl_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csru_convert_s(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csru_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrlu_convert_s(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csrlu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_coord_convert_s(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrlu_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_coord_convert_s(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_coord_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ne::Cint, row_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{Float32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint + @ccall libhsl.mc69_coord_convert_s(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ne::Cint, row_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint end function mc69_verify_d(unit, type, findex, m, n, ptr, row, val, more) - @ccall libhsl.mc69_verify_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, - n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, more::Ptr{Cint})::Cint + @ccall libhsl.mc69_verify_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + more::Ptr{Cint})::Cint end function mc69_print_d(unit, lines, type, findex, m, n, ptr, row, val) - @ccall libhsl.mc69_print_d(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64})::Cvoid + @ccall libhsl.mc69_print_d(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{Float64})::Cvoid end function mc69_set_values_d(type, lmap, map, val_in, ne, val_out) - @ccall libhsl.mc69_set_values_d(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, - val_in::Ptr{Float64}, ne::Cint, - val_out::Ptr{Float64})::Cvoid + @ccall libhsl.mc69_set_values_d(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, + val_in::Ptr{Float64}, ne::Cint, + val_out::Ptr{Float64})::Cvoid end function mc69_cscl_clean_d(unit, type, findex, m, n, ptr, row, val, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_clean_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Ptr{Cint}})::Cint + @ccall libhsl.mc69_cscl_clean_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Ptr{Cint}})::Cint end -function mc69_cscl_convert_d(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - row_in::Ptr{Cint}, val_in::Ptr{Float64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_cscu_convert_d(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, +function mc69_cscl_convert_d(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csclu_convert_d(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, - row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csclu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrl_convert_d(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrl_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{Float64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csru_convert_d(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_cscl_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_cscu_convert_d(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_cscu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csclu_convert_d(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csclu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrl_convert_d(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csru_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrlu_convert_d(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_csrl_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csru_convert_d(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csru_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrlu_convert_d(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csrlu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_coord_convert_d(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrlu_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_coord_convert_d(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_coord_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ne::Cint, row_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{Float64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{Float64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint + @ccall libhsl.mc69_coord_convert_d(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ne::Cint, row_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{Float64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{Float64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint end function mc69_verify_c(unit, type, findex, m, n, ptr, row, val, more) - @ccall libhsl.mc69_verify_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, - n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, more::Ptr{Cint})::Cint + @ccall libhsl.mc69_verify_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF32}, + more::Ptr{Cint})::Cint end function mc69_print_c(unit, lines, type, findex, m, n, ptr, row, val) - @ccall libhsl.mc69_print_c(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32})::Cvoid + @ccall libhsl.mc69_print_c(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF32})::Cvoid end function mc69_set_values_c(type, lmap, map, val_in, ne, val_out) - @ccall libhsl.mc69_set_values_c(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, - val_in::Ptr{ComplexF32}, ne::Cint, - val_out::Ptr{ComplexF32})::Cvoid + @ccall libhsl.mc69_set_values_c(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ne::Cint, + val_out::Ptr{ComplexF32})::Cvoid end function mc69_cscl_clean_c(unit, type, findex, m, n, ptr, row, val, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_clean_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Ptr{Cint}})::Cint + @ccall libhsl.mc69_cscl_clean_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Ptr{Cint}})::Cint end -function mc69_cscl_convert_c(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - row_in::Ptr{Cint}, val_in::Ptr{ComplexF32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_cscu_convert_c(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, +function mc69_cscl_convert_c(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csclu_convert_c(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, - row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csclu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrl_convert_c(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrl_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{ComplexF32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csru_convert_c(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_cscl_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_cscu_convert_c(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_cscu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csclu_convert_c(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csclu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrl_convert_c(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csru_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrlu_convert_c(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_csrl_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csru_convert_c(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csru_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrlu_convert_c(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csrlu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_coord_convert_c(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrlu_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_coord_convert_c(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_coord_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ne::Cint, row_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{ComplexF32}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF32}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint + @ccall libhsl.mc69_coord_convert_c(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ne::Cint, row_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF32}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF32}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint end function mc69_verify_z(unit, type, findex, m, n, ptr, row, val, more) - @ccall libhsl.mc69_verify_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, - n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, more::Ptr{Cint})::Cint + @ccall libhsl.mc69_verify_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF64}, + more::Ptr{Cint})::Cint end function mc69_print_z(unit, lines, type, findex, m, n, ptr, row, val) - @ccall libhsl.mc69_print_z(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64})::Cvoid + @ccall libhsl.mc69_print_z(unit::Cint, lines::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + val::Ptr{ComplexF64})::Cvoid end function mc69_set_values_z(type, lmap, map, val_in, ne, val_out) - @ccall libhsl.mc69_set_values_z(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, - val_in::Ptr{ComplexF64}, ne::Cint, - val_out::Ptr{ComplexF64})::Cvoid + @ccall libhsl.mc69_set_values_z(type::hsl_matrix_type, lmap::Cint, map::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ne::Cint, + val_out::Ptr{ComplexF64})::Cvoid end function mc69_cscl_clean_z(unit, type, findex, m, n, ptr, row, val, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_clean_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Ptr{Cint}})::Cint + @ccall libhsl.mc69_cscl_clean_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, n::Cint, + ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Ptr{Cint}})::Cint end -function mc69_cscl_convert_z(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscl_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - row_in::Ptr{Cint}, val_in::Ptr{ComplexF64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_cscu_convert_z(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, +function mc69_cscl_convert_z(unit, type, findex, m, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_cscu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csclu_convert_z(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, - row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csclu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, - val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrl_convert_z(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrl_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ptr_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{ComplexF64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csru_convert_z(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_cscl_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_cscu_convert_z(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_cscu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csclu_convert_z(unit, type, findex, n, ptr_in, row_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csclu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, row_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrl_convert_z(unit, type, findex, m, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csru_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_csrlu_convert_z(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, + @ccall libhsl.mc69_csrl_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csru_convert_z(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csru_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_csrlu_convert_z(unit, type, findex, n, ptr_in, col_in, val_in, ptr_out, lrow, row_out, + val_out, noor, ndup, lmap, map) + @ccall libhsl.mc69_csrlu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, n::Cint, + ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint +end + +function mc69_coord_convert_z(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_csrlu_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - n::Cint, ptr_in::Ptr{Cint}, col_in::Ptr{Cint}, - val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, - lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint -end - -function mc69_coord_convert_z(unit, type, findex, m, n, ne, row_in, col_in, val_in, ptr_out, - lrow, row_out, val_out, noor, ndup, lmap, map) - @ccall libhsl.mc69_coord_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, - m::Cint, n::Cint, ne::Cint, row_in::Ptr{Cint}, - col_in::Ptr{Cint}, val_in::Ptr{ComplexF64}, - ptr_out::Ptr{Cint}, lrow::Cint, row_out::Ptr{Cint}, - val_out::Ptr{ComplexF64}, noor::Ptr{Cint}, - ndup::Ptr{Cint}, lmap::Ptr{Cint}, - map::Ptr{Cint})::Cint + @ccall libhsl.mc69_coord_convert_z(unit::Cint, type::hsl_matrix_type, findex::Cint, m::Cint, + n::Cint, ne::Cint, row_in::Ptr{Cint}, col_in::Ptr{Cint}, + val_in::Ptr{ComplexF64}, ptr_out::Ptr{Cint}, lrow::Cint, + row_out::Ptr{Cint}, val_out::Ptr{ComplexF64}, + noor::Ptr{Cint}, ndup::Ptr{Cint}, lmap::Ptr{Cint}, + map::Ptr{Cint})::Cint end diff --git a/src/C/hsl_mc78.jl b/src/C/hsl_mc78.jl index 4d22677..ed1f6e1 100644 --- a/src/C/hsl_mc78.jl +++ b/src/C/hsl_mc78.jl @@ -1,211 +1,197 @@ mutable struct mc78_control - f_arrays::Cint - heuristic::Cint - nrelax::NTuple{3,Cint} - zrelax::NTuple{3,Cdouble} - nemin::Cint - unit_error::Cint - unit_warning::Cint - ssa_abort::Cint - svar::Cint - sort::Cint - lopt::Cint + f_arrays::Cint + heuristic::Cint + nrelax::NTuple{3,Cint} + zrelax::NTuple{3,Cdouble} + nemin::Cint + unit_error::Cint + unit_warning::Cint + ssa_abort::Cint + svar::Cint + sort::Cint + lopt::Cint end function mc78_default_control_i(control) - @ccall libhsl.mc78_default_control_i(control::Ref{mc78_control})::Cvoid + @ccall libhsl.mc78_default_control_i(control::Ref{mc78_control})::Cvoid end -function mc78_analyse_asm_i(n, ptr, row, perm, nnodes, sptr, sparent, rptr, rlist, control, - stat, nfact, nflops, piv_size) - @ccall libhsl.mc78_analyse_asm_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, nnodes::Ptr{Cint}, - sptr::Ptr{Ptr{Cint}}, sparent::Ptr{Ptr{Cint}}, - rptr::Ptr{Ptr{Int64}}, rlist::Ptr{Ptr{Cint}}, - control::Ref{mc78_control}, stat::Ptr{Cint}, - nfact::Ptr{Int64}, nflops::Ptr{Int64}, - piv_size::Ptr{Cint})::Cint +function mc78_analyse_asm_i(n, ptr, row, perm, nnodes, sptr, sparent, rptr, rlist, control, stat, + nfact, nflops, piv_size) + @ccall libhsl.mc78_analyse_asm_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + perm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, + sparent::Ptr{Ptr{Cint}}, rptr::Ptr{Ptr{Int64}}, + rlist::Ptr{Ptr{Cint}}, control::Ref{mc78_control}, + stat::Ptr{Cint}, nfact::Ptr{Int64}, nflops::Ptr{Int64}, + piv_size::Ptr{Cint})::Cint end -function mc78_analyse_elt_i(n, nelt, starts, vars, perm, eparent, nnodes, sptr, sparent, - rptr, rlist, control, stat, nfact, nflops, piv_size) - @ccall libhsl.mc78_analyse_elt_i(n::Cint, nelt::Cint, starts::Ptr{Cint}, - vars::Ptr{Cint}, perm::Ptr{Cint}, eparent::Ptr{Cint}, - nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, - sparent::Ptr{Ptr{Cint}}, rptr::Ptr{Ptr{Int64}}, - rlist::Ptr{Ptr{Cint}}, control::Ref{mc78_control}, - stat::Ptr{Cint}, nfact::Ptr{Int64}, nflops::Ptr{Int64}, - piv_size::Ptr{Cint})::Cint +function mc78_analyse_elt_i(n, nelt, starts, vars, perm, eparent, nnodes, sptr, sparent, rptr, + rlist, control, stat, nfact, nflops, piv_size) + @ccall libhsl.mc78_analyse_elt_i(n::Cint, nelt::Cint, starts::Ptr{Cint}, + vars::Ptr{Cint}, perm::Ptr{Cint}, eparent::Ptr{Cint}, + nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, sparent::Ptr{Ptr{Cint}}, + rptr::Ptr{Ptr{Int64}}, rlist::Ptr{Ptr{Cint}}, + control::Ref{mc78_control}, stat::Ptr{Cint}, nfact::Ptr{Int64}, + nflops::Ptr{Int64}, piv_size::Ptr{Cint})::Cint end function mc78_supervars_i(n, ptr, row, perm, invp, nsvar, svar) - @ccall libhsl.mc78_supervars_i(n::Ptr{Cint}, ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, - svar::Ptr{Cint})::Cint + @ccall libhsl.mc78_supervars_i(n::Ptr{Cint}, ptr::Ptr{Cint}, row::Ptr{Cint}, + perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, + svar::Ptr{Cint})::Cint end function mc78_compress_by_svar_i(n, ptr, row, invp, nsvar, svar, ptr2, lrow2, row2, st) - @ccall libhsl.mc78_compress_by_svar_i(n::Cint, ptr::Ptr{Cint}, - row::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Cint, - svar::Ptr{Cint}, ptr2::Ptr{Cint}, - lrow2::Cint, row2::Ptr{Cint}, - st::Ptr{Cint})::Cint + @ccall libhsl.mc78_compress_by_svar_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + invp::Ptr{Cint}, nsvar::Cint, svar::Ptr{Cint}, + ptr2::Ptr{Cint}, lrow2::Cint, + row2::Ptr{Cint}, st::Ptr{Cint})::Cint end function mc78_etree_i(n, ptr, row, perm, invp, parent) - @ccall libhsl.mc78_etree_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint})::Cint + @ccall libhsl.mc78_etree_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, perm::Ptr{Cint}, + invp::Ptr{Cint}, parent::Ptr{Cint})::Cint end -function mc78_elt_equiv_etree_i(n, nelt, starts, vars, perm, invp, nsvar, svar, ptr, row, - eparent, parent, block_pivots) - @ccall libhsl.mc78_elt_equiv_etree_i(n::Ptr{Cint}, nelt::Cint, - starts::Ptr{Cint}, vars::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, - svar::Ptr{Cint}, ptr::Ptr{Cint}, - row::Ptr{Cint}, eparent::Ptr{Cint}, - parent::Ptr{Cint}, block_pivots::Ptr{Cint})::Cint +function mc78_elt_equiv_etree_i(n, nelt, starts, vars, perm, invp, nsvar, svar, ptr, row, eparent, + parent, block_pivots) + @ccall libhsl.mc78_elt_equiv_etree_i(n::Ptr{Cint}, nelt::Cint, starts::Ptr{Cint}, + vars::Ptr{Cint}, perm::Ptr{Cint}, invp::Ptr{Cint}, + nsvar::Ptr{Cint}, svar::Ptr{Cint}, ptr::Ptr{Cint}, + row::Ptr{Cint}, eparent::Ptr{Cint}, parent::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_postorder_i(n, realn, ptr, perm, invp, parent, block_pivots) - @ccall libhsl.mc78_postorder_i(n::Cint, realn::Ptr{Cint}, ptr::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, - block_pivots::Ptr{Cint})::Cint + @ccall libhsl.mc78_postorder_i(n::Cint, realn::Ptr{Cint}, ptr::Ptr{Cint}, + perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_col_counts_i(n, ptr, row, perm, invp, parent, cc, wt) - @ccall libhsl.mc78_col_counts_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, - cc::Ptr{Cint}, wt::Ptr{Cint})::Cint + @ccall libhsl.mc78_col_counts_i(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, + cc::Ptr{Cint}, wt::Ptr{Cint})::Cint end -function mc78_supernodes_i(n, realn, parent, cc, sperm, nnodes, sptr, sparent, scc, invp, - control, st, wt, block_pivots) - @ccall libhsl.mc78_supernodes_i(n::Cint, realn::Cint, parent::Ptr{Cint}, cc::Ptr{Cint}, - sperm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Cint}, - sparent::Ptr{Cint}, scc::Ptr{Cint}, invp::Ptr{Cint}, - control::Ref{mc78_control}, st::Ptr{Cint}, - wt::Ptr{Cint}, block_pivots::Ptr{Cint})::Cint +function mc78_supernodes_i(n, realn, parent, cc, sperm, nnodes, sptr, sparent, scc, invp, control, + st, wt, block_pivots) + @ccall libhsl.mc78_supernodes_i(n::Cint, realn::Cint, parent::Ptr{Cint}, cc::Ptr{Cint}, + sperm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Cint}, + sparent::Ptr{Cint}, scc::Ptr{Cint}, invp::Ptr{Cint}, + control::Ref{mc78_control}, st::Ptr{Cint}, wt::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_stats_i(nnodes, sptr, scc, nfact, nflops) - @ccall libhsl.mc78_stats_i(nnodes::Cint, sptr::Ptr{Cint}, scc::Ptr{Cint}, - nfact::Ptr{Int64}, nflops::Ptr{Int64})::Cvoid + @ccall libhsl.mc78_stats_i(nnodes::Cint, sptr::Ptr{Cint}, scc::Ptr{Cint}, nfact::Ptr{Int64}, + nflops::Ptr{Int64})::Cvoid end -function mc78_optimize_locality_i(n, realn, perm, invp, nnodes, sptr, sparent, rptr, rlist, - sort) - @ccall libhsl.mc78_optimize_locality_i(n::Cint, realn::Cint, perm::Ptr{Cint}, - invp::Ptr{Cint}, nnodes::Cint, sptr::Ptr{Cint}, - sparent::Ptr{Cint}, rptr::Ptr{Int64}, - rlist::Ptr{Cint}, sort::Cint)::Cint +function mc78_optimize_locality_i(n, realn, perm, invp, nnodes, sptr, sparent, rptr, rlist, sort) + @ccall libhsl.mc78_optimize_locality_i(n::Cint, realn::Cint, perm::Ptr{Cint}, invp::Ptr{Cint}, + nnodes::Cint, sptr::Ptr{Cint}, sparent::Ptr{Cint}, + rptr::Ptr{Int64}, rlist::Ptr{Cint}, sort::Cint)::Cint end -function mc78_row_lists_i(nsvar, svar, n, ptr, row, perm, invp, nnodes, sptr, sparent, scc, - rptr, rlist, control, st) - @ccall libhsl.mc78_row_lists_i(nsvar::Cint, svar::Ptr{Cint}, n::Cint, - ptr::Ptr{Cint}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nnodes::Cint, - sptr::Ptr{Cint}, sparent::Ptr{Cint}, scc::Ptr{Cint}, - rptr::Ptr{Int64}, rlist::Ptr{Cint}, - control::Ref{mc78_control}, st::Ptr{Cint})::Cint +function mc78_row_lists_i(nsvar, svar, n, ptr, row, perm, invp, nnodes, sptr, sparent, scc, rptr, + rlist, control, st) + @ccall libhsl.mc78_row_lists_i(nsvar::Cint, svar::Ptr{Cint}, n::Cint, ptr::Ptr{Cint}, + row::Ptr{Cint}, perm::Ptr{Cint}, invp::Ptr{Cint}, nnodes::Cint, + sptr::Ptr{Cint}, sparent::Ptr{Cint}, scc::Ptr{Cint}, + rptr::Ptr{Int64}, rlist::Ptr{Cint}, control::Ref{mc78_control}, + st::Ptr{Cint})::Cint end function mc78_default_control_l(control) - @ccall libhsl.mc78_default_control_l(control::Ref{mc78_control})::Cvoid + @ccall libhsl.mc78_default_control_l(control::Ref{mc78_control})::Cvoid end -function mc78_analyse_asm_l(n, ptr, row, perm, nnodes, sptr, sparent, rptr, rlist, control, - stat, nfact, nflops, piv_size) - @ccall libhsl.mc78_analyse_asm_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, - perm::Ptr{Cint}, nnodes::Ptr{Cint}, - sptr::Ptr{Ptr{Cint}}, sparent::Ptr{Ptr{Cint}}, - rptr::Ptr{Ptr{Int64}}, rlist::Ptr{Ptr{Cint}}, - control::Ref{mc78_control}, stat::Ptr{Cint}, - nfact::Ptr{Int64}, nflops::Ptr{Int64}, - piv_size::Ptr{Cint})::Cint +function mc78_analyse_asm_l(n, ptr, row, perm, nnodes, sptr, sparent, rptr, rlist, control, stat, + nfact, nflops, piv_size) + @ccall libhsl.mc78_analyse_asm_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, + perm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, + sparent::Ptr{Ptr{Cint}}, rptr::Ptr{Ptr{Int64}}, + rlist::Ptr{Ptr{Cint}}, control::Ref{mc78_control}, + stat::Ptr{Cint}, nfact::Ptr{Int64}, nflops::Ptr{Int64}, + piv_size::Ptr{Cint})::Cint end -function mc78_analyse_elt_l(n, nelt, starts, vars, perm, eparent, nnodes, sptr, sparent, - rptr, rlist, control, stat, nfact, nflops, piv_size) - @ccall libhsl.mc78_analyse_elt_l(n::Cint, nelt::Cint, starts::Ptr{Clong}, - vars::Ptr{Cint}, perm::Ptr{Cint}, eparent::Ptr{Cint}, - nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, - sparent::Ptr{Ptr{Cint}}, rptr::Ptr{Ptr{Int64}}, - rlist::Ptr{Ptr{Cint}}, control::Ref{mc78_control}, - stat::Ptr{Cint}, nfact::Ptr{Int64}, nflops::Ptr{Int64}, - piv_size::Ptr{Cint})::Cint +function mc78_analyse_elt_l(n, nelt, starts, vars, perm, eparent, nnodes, sptr, sparent, rptr, + rlist, control, stat, nfact, nflops, piv_size) + @ccall libhsl.mc78_analyse_elt_l(n::Cint, nelt::Cint, starts::Ptr{Clong}, + vars::Ptr{Cint}, perm::Ptr{Cint}, eparent::Ptr{Cint}, + nnodes::Ptr{Cint}, sptr::Ptr{Ptr{Cint}}, sparent::Ptr{Ptr{Cint}}, + rptr::Ptr{Ptr{Int64}}, rlist::Ptr{Ptr{Cint}}, + control::Ref{mc78_control}, stat::Ptr{Cint}, nfact::Ptr{Int64}, + nflops::Ptr{Int64}, piv_size::Ptr{Cint})::Cint end function mc78_supervars_l(n, ptr, row, perm, invp, nsvar, svar) - @ccall libhsl.mc78_supervars_l(n::Ptr{Cint}, ptr::Ptr{Clong}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, - svar::Ptr{Cint})::Cint + @ccall libhsl.mc78_supervars_l(n::Ptr{Cint}, ptr::Ptr{Clong}, row::Ptr{Cint}, + perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, + svar::Ptr{Cint})::Cint end function mc78_compress_by_svar_l(n, ptr, row, invp, nsvar, svar, ptr2, lrow2, row2, st) - @ccall libhsl.mc78_compress_by_svar_l(n::Cint, ptr::Ptr{Clong}, - row::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Cint, - svar::Ptr{Cint}, ptr2::Ptr{Clong}, - lrow2::Clong, row2::Ptr{Cint}, - st::Ptr{Cint})::Cint + @ccall libhsl.mc78_compress_by_svar_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, + invp::Ptr{Cint}, nsvar::Cint, svar::Ptr{Cint}, + ptr2::Ptr{Clong}, lrow2::Clong, + row2::Ptr{Cint}, st::Ptr{Cint})::Cint end function mc78_etree_l(n, ptr, row, perm, invp, parent) - @ccall libhsl.mc78_etree_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint})::Cint + @ccall libhsl.mc78_etree_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, perm::Ptr{Cint}, + invp::Ptr{Cint}, parent::Ptr{Cint})::Cint end -function mc78_elt_equiv_etree_l(n, nelt, starts, vars, perm, invp, nsvar, svar, ptr, row, - eparent, parent, block_pivots) - @ccall libhsl.mc78_elt_equiv_etree_l(n::Ptr{Cint}, nelt::Cint, - starts::Ptr{Clong}, vars::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nsvar::Ptr{Cint}, - svar::Ptr{Cint}, ptr::Ptr{Clong}, - row::Ptr{Cint}, eparent::Ptr{Cint}, - parent::Ptr{Cint}, block_pivots::Ptr{Cint})::Cint +function mc78_elt_equiv_etree_l(n, nelt, starts, vars, perm, invp, nsvar, svar, ptr, row, eparent, + parent, block_pivots) + @ccall libhsl.mc78_elt_equiv_etree_l(n::Ptr{Cint}, nelt::Cint, starts::Ptr{Clong}, + vars::Ptr{Cint}, perm::Ptr{Cint}, invp::Ptr{Cint}, + nsvar::Ptr{Cint}, svar::Ptr{Cint}, ptr::Ptr{Clong}, + row::Ptr{Cint}, eparent::Ptr{Cint}, parent::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_postorder_l(n, realn, ptr, perm, invp, parent, block_pivots) - @ccall libhsl.mc78_postorder_l(n::Cint, realn::Ptr{Cint}, ptr::Ptr{Clong}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, - block_pivots::Ptr{Cint})::Cint + @ccall libhsl.mc78_postorder_l(n::Cint, realn::Ptr{Cint}, ptr::Ptr{Clong}, + perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_col_counts_l(n, ptr, row, perm, invp, parent, cc, wt) - @ccall libhsl.mc78_col_counts_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, - cc::Ptr{Cint}, wt::Ptr{Cint})::Cint + @ccall libhsl.mc78_col_counts_l(n::Cint, ptr::Ptr{Clong}, row::Ptr{Cint}, + perm::Ptr{Cint}, invp::Ptr{Cint}, parent::Ptr{Cint}, + cc::Ptr{Cint}, wt::Ptr{Cint})::Cint end -function mc78_supernodes_l(n, realn, parent, cc, sperm, nnodes, sptr, sparent, scc, invp, - control, st, wt, block_pivots) - @ccall libhsl.mc78_supernodes_l(n::Cint, realn::Cint, parent::Ptr{Cint}, cc::Ptr{Cint}, - sperm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Cint}, - sparent::Ptr{Cint}, scc::Ptr{Cint}, invp::Ptr{Cint}, - control::Ref{mc78_control}, st::Ptr{Cint}, - wt::Ptr{Cint}, block_pivots::Ptr{Cint})::Cint +function mc78_supernodes_l(n, realn, parent, cc, sperm, nnodes, sptr, sparent, scc, invp, control, + st, wt, block_pivots) + @ccall libhsl.mc78_supernodes_l(n::Cint, realn::Cint, parent::Ptr{Cint}, cc::Ptr{Cint}, + sperm::Ptr{Cint}, nnodes::Ptr{Cint}, sptr::Ptr{Cint}, + sparent::Ptr{Cint}, scc::Ptr{Cint}, invp::Ptr{Cint}, + control::Ref{mc78_control}, st::Ptr{Cint}, wt::Ptr{Cint}, + block_pivots::Ptr{Cint})::Cint end function mc78_stats_l(nnodes, sptr, scc, nfact, nflops) - @ccall libhsl.mc78_stats_l(nnodes::Cint, sptr::Ptr{Cint}, scc::Ptr{Cint}, - nfact::Ptr{Int64}, nflops::Ptr{Int64})::Cvoid -end - -function mc78_optimize_locality_l(n, realn, perm, invp, nnodes, sptr, sparent, rptr, rlist, - sort) - @ccall libhsl.mc78_optimize_locality_l(n::Cint, realn::Cint, perm::Ptr{Cint}, - invp::Ptr{Cint}, nnodes::Cint, sptr::Ptr{Cint}, - sparent::Ptr{Cint}, rptr::Ptr{Int64}, - rlist::Ptr{Cint}, sort::Cint)::Cint -end - -function mc78_row_lists_l(nsvar, svar, n, ptr, row, perm, invp, nnodes, sptr, sparent, scc, - rptr, rlist, control, st) - @ccall libhsl.mc78_row_lists_l(nsvar::Cint, svar::Ptr{Cint}, n::Cint, - ptr::Ptr{Clong}, row::Ptr{Cint}, - perm::Ptr{Cint}, invp::Ptr{Cint}, nnodes::Cint, - sptr::Ptr{Cint}, sparent::Ptr{Cint}, scc::Ptr{Cint}, - rptr::Ptr{Int64}, rlist::Ptr{Cint}, - control::Ref{mc78_control}, st::Ptr{Cint})::Cint + @ccall libhsl.mc78_stats_l(nnodes::Cint, sptr::Ptr{Cint}, scc::Ptr{Cint}, nfact::Ptr{Int64}, + nflops::Ptr{Int64})::Cvoid +end + +function mc78_optimize_locality_l(n, realn, perm, invp, nnodes, sptr, sparent, rptr, rlist, sort) + @ccall libhsl.mc78_optimize_locality_l(n::Cint, realn::Cint, perm::Ptr{Cint}, invp::Ptr{Cint}, + nnodes::Cint, sptr::Ptr{Cint}, sparent::Ptr{Cint}, + rptr::Ptr{Int64}, rlist::Ptr{Cint}, sort::Cint)::Cint +end + +function mc78_row_lists_l(nsvar, svar, n, ptr, row, perm, invp, nnodes, sptr, sparent, scc, rptr, + rlist, control, st) + @ccall libhsl.mc78_row_lists_l(nsvar::Cint, svar::Ptr{Cint}, n::Cint, ptr::Ptr{Clong}, + row::Ptr{Cint}, perm::Ptr{Cint}, invp::Ptr{Cint}, nnodes::Cint, + sptr::Ptr{Cint}, sparent::Ptr{Cint}, scc::Ptr{Cint}, + rptr::Ptr{Int64}, rlist::Ptr{Cint}, control::Ref{mc78_control}, + st::Ptr{Cint})::Cint end diff --git a/src/C/hsl_mc79.jl b/src/C/hsl_mc79.jl index 4239906..54c156b 100644 --- a/src/C/hsl_mc79.jl +++ b/src/C/hsl_mc79.jl @@ -1,47 +1,46 @@ mutable struct mc79_control - f_arrays::Cint - lp::Cint - wp::Cint - mp::Cint - print_level::Cint + f_arrays::Cint + lp::Cint + wp::Cint + mp::Cint + print_level::Cint end function mc79_default_control_i(control) - @ccall libhsl.mc79_default_control_i(control::Ref{mc79_control})::Cvoid + @ccall libhsl.mc79_default_control_i(control::Ref{mc79_control})::Cvoid end mutable struct mc79_info - flag::Cint - hz_comps::Cint - vt_comps::Cint - sq_comps::Cint - m1::Cint - m2::Cint - m3::Cint - mbar::Cint - n1::Cint - n2::Cint - n3::Cint - nbar::Cint - stat::Cint + flag::Cint + hz_comps::Cint + vt_comps::Cint + sq_comps::Cint + m1::Cint + m2::Cint + m3::Cint + mbar::Cint + n1::Cint + n2::Cint + n3::Cint + nbar::Cint + stat::Cint end function mc79_matching_i(m, n, ptr, row, rowmatch, colmatch, control, info) - @ccall libhsl.mc79_matching_i(m::Cint, n::Cint, ptr::Ptr{Cint}, - row::Ptr{Cint}, rowmatch::Ptr{Cint}, colmatch::Ptr{Cint}, - control::Ref{mc79_control}, - info::Ref{mc79_info})::Cvoid + @ccall libhsl.mc79_matching_i(m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + rowmatch::Ptr{Cint}, colmatch::Ptr{Cint}, + control::Ref{mc79_control}, info::Ref{mc79_info})::Cvoid end function mc79_coarse_i(m, n, ptr, row, rowperm, colperm, control, info) - @ccall libhsl.mc79_coarse_i(m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - rowperm::Ptr{Cint}, colperm::Ptr{Cint}, - control::Ref{mc79_control}, info::Ref{mc79_info})::Cvoid + @ccall libhsl.mc79_coarse_i(m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + rowperm::Ptr{Cint}, colperm::Ptr{Cint}, control::Ref{mc79_control}, + info::Ref{mc79_info})::Cvoid end function mc79_fine_i(m, n, ptr, row, rowperm, colperm, rowcomp, colcomp, control, info) - @ccall libhsl.mc79_fine_i(m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - rowperm::Ptr{Cint}, colperm::Ptr{Cint}, rowcomp::Ptr{Cint}, - colcomp::Ptr{Cint}, control::Ref{mc79_control}, - info::Ref{mc79_info})::Cvoid + @ccall libhsl.mc79_fine_i(m::Cint, n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, + rowperm::Ptr{Cint}, colperm::Ptr{Cint}, rowcomp::Ptr{Cint}, + colcomp::Ptr{Cint}, control::Ref{mc79_control}, + info::Ref{mc79_info})::Cvoid end diff --git a/src/C/hsl_mi20.jl b/src/C/hsl_mi20.jl index 94faa7f..c0f4a86 100644 --- a/src/C/hsl_mi20.jl +++ b/src/C/hsl_mi20.jl @@ -1,155 +1,147 @@ mutable struct mi20_control{T} - f_arrays::Cint - aggressive::Cint - c_fail::Cint - max_levels::Cint - max_points::Cint - reduction::T - st_method::Cint - st_parameter::T - testing::Cint - trunc_parameter::T - coarse_solver::Cint - coarse_solver_its::Cint - damping::T - err_tol::T - levels::Cint - pre_smoothing::Cint - smoother::Cint - post_smoothing::Cint - v_iterations::Cint - print_level::Cint - print::Cint - error::Cint - one_pass_coarsen::Cint + f_arrays::Cint + aggressive::Cint + c_fail::Cint + max_levels::Cint + max_points::Cint + reduction::T + st_method::Cint + st_parameter::T + testing::Cint + trunc_parameter::T + coarse_solver::Cint + coarse_solver_its::Cint + damping::T + err_tol::T + levels::Cint + pre_smoothing::Cint + smoother::Cint + post_smoothing::Cint + v_iterations::Cint + print_level::Cint + print::Cint + error::Cint + one_pass_coarsen::Cint end function mi20_default_control_s(control) - @ccall libhsl.mi20_default_control_s(control::Ref{mi20_control{Float32}})::Cvoid + @ccall libhsl.mi20_default_control_s(control::Ref{mi20_control{Float32}})::Cvoid end mutable struct mi20_solve_control{T} - abs_tol::T - breakdown_tol::T - gmres_restart::Cint - init_guess::Bool - krylov_solver::Cint - max_its::Cint - preconditioner_side::Cint - rel_tol::T + abs_tol::T + breakdown_tol::T + gmres_restart::Cint + init_guess::Bool + krylov_solver::Cint + max_its::Cint + preconditioner_side::Cint + rel_tol::T end function mi20_default_solve_control_s(solve_control) - @ccall libhsl.mi20_default_solve_control_s(solve_control::Ref{mi20_solve_control{Float32}})::Cvoid + @ccall libhsl.mi20_default_solve_control_s(solve_control::Ref{mi20_solve_control{Float32}})::Cvoid end mutable struct mi20_info{T} - flag::Cint - clevels::Cint - cpoints::Cint - cnnz::Cint - stat::Cint - getrf_info::Cint - iterations::Cint - residual::T + flag::Cint + clevels::Cint + cpoints::Cint + cnnz::Cint + stat::Cint + getrf_info::Cint + iterations::Cint + residual::T end function mi20_setup_s(n, ptr, col, val, keep, control, info) - @ccall libhsl.mi20_setup_s(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float32}}, info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_setup_s(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, val::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_setup_csr_s(n, ptr, col, val, keep, control, info) - @ccall libhsl.mi20_setup_csr_s(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_setup_csr_s(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, val::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_setup_csc_s(n, ptr, row, val, keep, control, info) - @ccall libhsl.mi20_setup_csc_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_setup_csc_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_setup_coord_s(n, ne, row, col, val, keep, control, info) - @ccall libhsl.mi20_setup_coord_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_setup_coord_s(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{mi20_control{Float32}}, info::Ref{mi20_info{Float32}})::Cvoid end function mi20_finalize_s(keep, control, info) - @ccall libhsl.mi20_finalize_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_finalize_s(keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_precondition_s(rhs, solution, keep, control, info) - @ccall libhsl.mi20_precondition_s(rhs::Ptr{Float32}, - solution::Ptr{Float32}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_precondition_s(rhs::Ptr{Float32}, solution::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_solve_s(rhs, solution, keep, control, solve_control, info) - @ccall libhsl.mi20_solve_s(rhs::Ptr{Float32}, solution::Ptr{Float32}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, - solve_control::Ref{mi20_solve_control{Float32}}, - info::Ref{mi20_info{Float32}})::Cvoid + @ccall libhsl.mi20_solve_s(rhs::Ptr{Float32}, solution::Ptr{Float32}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float32}}, + solve_control::Ref{mi20_solve_control{Float32}}, + info::Ref{mi20_info{Float32}})::Cvoid end function mi20_default_control_d(control) - @ccall libhsl.mi20_default_control_d(control::Ref{mi20_control{Float64}})::Cvoid + @ccall libhsl.mi20_default_control_d(control::Ref{mi20_control{Float64}})::Cvoid end function mi20_default_solve_control_d(solve_control) - @ccall libhsl.mi20_default_solve_control_d(solve_control::Ref{mi20_solve_control{Float64}})::Cvoid + @ccall libhsl.mi20_default_solve_control_d(solve_control::Ref{mi20_solve_control{Float64}})::Cvoid end function mi20_setup_d(n, ptr, col, val, keep, control, info) - @ccall libhsl.mi20_setup_d(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float64}}, info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_setup_d(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, val::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end function mi20_setup_csr_d(n, ptr, col, val, keep, control, info) - @ccall libhsl.mi20_setup_csr_d(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_setup_csr_d(n::Cint, ptr::Ptr{Cint}, col::Ptr{Cint}, val::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end function mi20_setup_csc_d(n, ptr, row, val, keep, control, info) - @ccall libhsl.mi20_setup_csc_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_setup_csc_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end function mi20_setup_coord_d(n, ne, row, col, val, keep, control, info) - @ccall libhsl.mi20_setup_coord_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, - val::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_setup_coord_d(n::Cint, ne::Cint, row::Ptr{Cint}, col::Ptr{Cint}, + val::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, + control::Ref{mi20_control{Float64}}, info::Ref{mi20_info{Float64}})::Cvoid end function mi20_finalize_d(keep, control, info) - @ccall libhsl.mi20_finalize_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_finalize_d(keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end function mi20_precondition_d(rhs, solution, keep, control, info) - @ccall libhsl.mi20_precondition_d(rhs::Ptr{Float64}, - solution::Ptr{Float64}, keep::Ptr{Ptr{Cvoid}}, - control::Ref{mi20_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_precondition_d(rhs::Ptr{Float64}, solution::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end function mi20_solve_d(rhs, solution, keep, control, solve_control, info) - @ccall libhsl.mi20_solve_d(rhs::Ptr{Float64}, solution::Ptr{Float64}, - keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, - solve_control::Ref{mi20_solve_control{Float64}}, - info::Ref{mi20_info{Float64}})::Cvoid + @ccall libhsl.mi20_solve_d(rhs::Ptr{Float64}, solution::Ptr{Float64}, + keep::Ptr{Ptr{Cvoid}}, control::Ref{mi20_control{Float64}}, + solve_control::Ref{mi20_solve_control{Float64}}, + info::Ref{mi20_info{Float64}})::Cvoid end diff --git a/src/C/hsl_mi28.jl b/src/C/hsl_mi28.jl index fe76fa7..86c5eb1 100644 --- a/src/C/hsl_mi28.jl +++ b/src/C/hsl_mi28.jl @@ -1,92 +1,86 @@ mutable struct mi28_control{T} - f_arrays::Cint - alpha::T - check::Bool - iorder::Cint - iscale::Cint - lowalpha::T - maxshift::Cint - rrt::Bool - shift_factor::T - shift_factor2::T - small::T - tau1::T - tau2::T - unit_error::Cint - unit_warning::Cint + f_arrays::Cint + alpha::T + check::Bool + iorder::Cint + iscale::Cint + lowalpha::T + maxshift::Cint + rrt::Bool + shift_factor::T + shift_factor2::T + small::T + tau1::T + tau2::T + unit_error::Cint + unit_warning::Cint end function mi28_default_control_s(control) - @ccall libhsl.mi28_default_control_s(control::Ref{mi28_control{Float32}})::Cvoid + @ccall libhsl.mi28_default_control_s(control::Ref{mi28_control{Float32}})::Cvoid end mutable struct mi28_info{T} - band_after::Cint - band_before::Cint - dup::Cint - flag::Cint - flag61::Cint - flag64::Cint - flag68::Cint - flag77::Cint - nrestart::Cint - nshift::Cint - oor::Cint - profile_before::T - profile_after::T - size_r::Int64 - stat::Cint - alpha::T + band_after::Cint + band_before::Cint + dup::Cint + flag::Cint + flag61::Cint + flag64::Cint + flag68::Cint + flag77::Cint + nrestart::Cint + nshift::Cint + oor::Cint + profile_before::T + profile_after::T + size_r::Int64 + stat::Cint + alpha::T end function mi28_factorize_s(n, ptr, row, val, lsize, rsize, keep, control, info, scale, perm) - @ccall libhsl.mi28_factorize_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float32}, lsize::Cint, rsize::Cint, - keep::Ptr{Ptr{Cvoid}}, control::Ref{mi28_control{Float32}}, - info::Ref{mi28_info{Float32}}, scale::Ptr{Float32}, - perm::Ptr{Cint})::Cvoid + @ccall libhsl.mi28_factorize_s(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float32}, + lsize::Cint, rsize::Cint, keep::Ptr{Ptr{Cvoid}}, + control::Ref{mi28_control{Float32}}, info::Ref{mi28_info{Float32}}, + scale::Ptr{Float32}, perm::Ptr{Cint})::Cvoid end function mi28_precondition_s(n, keep, z, y, info) - @ccall libhsl.mi28_precondition_s(n::Cint, keep::Ptr{Ptr{Cvoid}}, - z::Ptr{Float32}, y::Ptr{Float32}, - info::Ref{mi28_info{Float32}})::Cvoid + @ccall libhsl.mi28_precondition_s(n::Cint, keep::Ptr{Ptr{Cvoid}}, z::Ptr{Float32}, + y::Ptr{Float32}, info::Ref{mi28_info{Float32}})::Cvoid end function mi28_solve_s(trans, n, keep, z, y, info) - @ccall libhsl.mi28_solve_s(trans::Bool, n::Cint, keep::Ptr{Ptr{Cvoid}}, - z::Ptr{Float32}, y::Ptr{Float32}, - info::Ref{mi28_info{Float32}})::Cvoid + @ccall libhsl.mi28_solve_s(trans::Bool, n::Cint, keep::Ptr{Ptr{Cvoid}}, z::Ptr{Float32}, + y::Ptr{Float32}, info::Ref{mi28_info{Float32}})::Cvoid end function mi28_finalise_s(keep, info) - @ccall libhsl.mi28_finalise_s(keep::Ptr{Ptr{Cvoid}}, info::Ref{mi28_info{Float32}})::Cvoid + @ccall libhsl.mi28_finalise_s(keep::Ptr{Ptr{Cvoid}}, info::Ref{mi28_info{Float32}})::Cvoid end function mi28_default_control_d(control) - @ccall libhsl.mi28_default_control_d(control::Ref{mi28_control{Float64}})::Cvoid + @ccall libhsl.mi28_default_control_d(control::Ref{mi28_control{Float64}})::Cvoid end function mi28_factorize_d(n, ptr, row, val, lsize, rsize, keep, control, info, scale, perm) - @ccall libhsl.mi28_factorize_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, - val::Ptr{Float64}, lsize::Cint, rsize::Cint, - keep::Ptr{Ptr{Cvoid}}, control::Ref{mi28_control{Float64}}, - info::Ref{mi28_info{Float64}}, scale::Ptr{Float64}, - perm::Ptr{Cint})::Cvoid + @ccall libhsl.mi28_factorize_d(n::Cint, ptr::Ptr{Cint}, row::Ptr{Cint}, val::Ptr{Float64}, + lsize::Cint, rsize::Cint, keep::Ptr{Ptr{Cvoid}}, + control::Ref{mi28_control{Float64}}, info::Ref{mi28_info{Float64}}, + scale::Ptr{Float64}, perm::Ptr{Cint})::Cvoid end function mi28_precondition_d(n, keep, z, y, info) - @ccall libhsl.mi28_precondition_d(n::Cint, keep::Ptr{Ptr{Cvoid}}, - z::Ptr{Float64}, y::Ptr{Float64}, - info::Ref{mi28_info{Float64}})::Cvoid + @ccall libhsl.mi28_precondition_d(n::Cint, keep::Ptr{Ptr{Cvoid}}, z::Ptr{Float64}, + y::Ptr{Float64}, info::Ref{mi28_info{Float64}})::Cvoid end function mi28_solve_d(trans, n, keep, z, y, info) - @ccall libhsl.mi28_solve_d(trans::Bool, n::Cint, keep::Ptr{Ptr{Cvoid}}, - z::Ptr{Float64}, y::Ptr{Float64}, - info::Ref{mi28_info{Float64}})::Cvoid + @ccall libhsl.mi28_solve_d(trans::Bool, n::Cint, keep::Ptr{Ptr{Cvoid}}, z::Ptr{Float64}, + y::Ptr{Float64}, info::Ref{mi28_info{Float64}})::Cvoid end function mi28_finalise_d(keep, info) - @ccall libhsl.mi28_finalise_d(keep::Ptr{Ptr{Cvoid}}, info::Ref{mi28_info{Float64}})::Cvoid + @ccall libhsl.mi28_finalise_d(keep::Ptr{Ptr{Cvoid}}, info::Ref{mi28_info{Float64}})::Cvoid end diff --git a/src/C/juliahsl.jl b/src/C/juliahsl.jl deleted file mode 100644 index b160827..0000000 --- a/src/C/juliahsl.jl +++ /dev/null @@ -1,1248 +0,0 @@ -function LIBHSL_isfunctional() - @ccall libhsl.LIBHSL_isfunctional()::Bool -end - -function JULIAHSL_isfunctional() - @ccall libhsl.JULIAHSL_isfunctional()::Bool -end - -function JULIAHSL_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.JULIAHSL_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_AD02_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_AD02_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_ZD13_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_ZD13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA27_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA27_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA28_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA28_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA30_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA33_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA33_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC19_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC19_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC20_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC23_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC24_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC24_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function TD22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.TD22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function BTF_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.BTF_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EA16_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EA16_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EA22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EA22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EA25_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EA25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EB13_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EB13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EB22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EB22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function EP25_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.EP25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function FA14_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.FA14_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function FD15_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.FD15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_EA19_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_EA19_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_EA20_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_EA20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_FA14_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_FA14_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_KB22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_KB22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA42_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA42_ELEMENT_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA42_ELEMENT_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA48_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA54_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA55_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA55_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA57_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA64_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA69_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA74_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA74_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA77_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA77_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA78_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA78_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA79_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA79_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA85_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA85_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA86_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA86_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA87_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA87_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MA97_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MA97_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC34_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC34_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC56_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC56_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC64_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC65_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC65_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC66_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC66_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC68_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC68_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC69_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC73_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC73_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC78_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC78_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC79_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC79_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC80_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC80_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MC81_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MC81_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_ME57_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_ME57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI02_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI02_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI13_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI20_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI27_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI27_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI28_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI28_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI29_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI30_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI31_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI31_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI32_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI32_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MI35_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MI35_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP01_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP42_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP43_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP48_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP54_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP62_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_MP82_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_MP82_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_OF01_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_OF01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_ZB01_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_ZB01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function HSL_ZD11_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.HSL_ZD11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function KB05_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.KB05_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function KB06_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.KB06_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function KB07_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.KB07_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function KB08_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.KB08_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function LA04_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.LA04_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function LA15_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.LA15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA38_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA41_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA41_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA42_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA43_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA44_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA44_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA46_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA46_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA48_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA49_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA49_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA50_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA50_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA51_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA51_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA52_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA52_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA57_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA60_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA60_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA61_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA61_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA62_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA65_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA65_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA67_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA67_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA69_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA72_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA72_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MA75_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MA75_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC13_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC21_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC21_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC25_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC26_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC26_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC29_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC30_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC33_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC33_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC34_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC34_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC37_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC37_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC38_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC44_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC44_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC46_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC46_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC47_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC47_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC53_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC53_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC54_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC55_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC55_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC56_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC56_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC57_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC58_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC58_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC59_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC59_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC60_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC60_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC61_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC61_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC62_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC63_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC63_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC64_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC67_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC67_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC71_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC71_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC72_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC72_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC75_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC75_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MC77_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MC77_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME22_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME38_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME42_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME43_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME48_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME50_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME50_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME57_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function ME62_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.ME62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MF29_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MF29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MF30_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MF30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MF64_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MF64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MF71_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MF71_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI11_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI12_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI12_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI15_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI21_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI21_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI23_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI24_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI24_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI25_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function MI26_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.MI26_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function NS23_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.NS23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function PA16_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.PA16_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function PA17_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.PA17_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - -function YM11_version() - major = Ref{Cint}(0) - minor = Ref{Cint}(0) - patch = Ref{Cint}(0) - @ccall libhsl.YM11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid - VersionNumber(major[], minor[], patch[]) -end - diff --git a/src/C/libhsl.jl b/src/C/libhsl.jl new file mode 100644 index 0000000..aca087d --- /dev/null +++ b/src/C/libhsl.jl @@ -0,0 +1,1316 @@ +function LIBHSL_isfunctional() + @ccall libhsl.LIBHSL_isfunctional()::Bool +end + +function LIBHSL_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.LIBHSL_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_AD02_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_AD02_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_ZD13_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_ZD13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA27_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA27_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA28_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA28_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA30_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA33_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA33_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC19_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC19_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC20_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC23_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC24_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC24_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function TD22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.TD22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function BTF_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.BTF_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function FA01_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.FA01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function FA04_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.FA04_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function FD05_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.FD05_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ID05_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ID05_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC36_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC36_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC49_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC49_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME20_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MF36_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MF36_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function YM01_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.YM01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EA16_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EA16_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EA22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EA22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EA25_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EA25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EB13_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EB13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EB22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EB22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function EP25_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.EP25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function FA14_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.FA14_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function FD15_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.FD15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_EA19_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_EA19_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_EA20_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_EA20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_FA14_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_FA14_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_KB22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_KB22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA42_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA42_ELEMENT_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA42_ELEMENT_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA48_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA54_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA55_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA55_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA57_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA64_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA69_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA74_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA74_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA77_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA77_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA78_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA78_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA79_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA79_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA85_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA85_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA86_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA86_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA87_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA87_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MA97_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MA97_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC34_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC34_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC56_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC56_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC64_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC65_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC65_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC66_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC66_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC68_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC68_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC69_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC73_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC73_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC78_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC78_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC79_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC79_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC80_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC80_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MC81_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MC81_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_ME57_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_ME57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI02_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI02_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI13_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI20_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI20_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI27_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI27_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI28_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI28_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI29_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI30_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI31_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI31_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI32_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI32_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MI35_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MI35_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP01_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP42_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP43_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP48_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP54_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP62_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_MP82_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_MP82_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_OF01_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_OF01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_ZB01_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_ZB01_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function HSL_ZD11_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.HSL_ZD11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function KB05_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.KB05_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function KB06_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.KB06_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function KB07_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.KB07_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function KB08_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.KB08_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function LA04_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.LA04_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function LA15_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.LA15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA38_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA41_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA41_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA42_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA43_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA44_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA44_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA46_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA46_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA48_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA49_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA49_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA50_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA50_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA51_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA51_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA52_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA52_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA57_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA60_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA60_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA61_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA61_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA62_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA65_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA65_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA67_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA67_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA69_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA69_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA72_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA72_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MA75_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MA75_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC13_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC13_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC21_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC21_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC25_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC26_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC26_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC29_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC30_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC33_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC33_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC34_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC34_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC37_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC37_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC38_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC44_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC44_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC46_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC46_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC47_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC47_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC53_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC53_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC54_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC54_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC55_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC55_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC56_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC56_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC57_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC58_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC58_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC59_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC59_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC60_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC60_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC61_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC61_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC62_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC63_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC63_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC64_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC67_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC67_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC71_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC71_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC72_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC72_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC75_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC75_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MC77_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MC77_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME22_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME22_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME38_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME38_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME42_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME42_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME43_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME43_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME48_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME48_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME50_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME50_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME57_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME57_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function ME62_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.ME62_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MF29_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MF29_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MF30_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MF30_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MF64_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MF64_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MF71_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MF71_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI11_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI12_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI12_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI15_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI15_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI21_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI21_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI23_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI24_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI24_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI25_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI25_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function MI26_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.MI26_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function NS23_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.NS23_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function PA16_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.PA16_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function PA17_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.PA17_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + +function YM11_version() + major = Ref{Cint}(0) + minor = Ref{Cint}(0) + patch = Ref{Cint}(0) + @ccall libhsl.YM11_version(major::Ref{Cint}, minor::Ref{Cint}, patch::Ref{Cint})::Cvoid + return VersionNumber(major[], minor[], patch[]) +end + diff --git a/src/wrappers.jl b/src/wrappers.jl index 30b434b..d429e86 100644 --- a/src/wrappers.jl +++ b/src/wrappers.jl @@ -1,7 +1,7 @@ -export JULIAHSL_isfunctional, LIBHSL_isfunctional +export LIBHSL_isfunctional # Wrappers generated by Clang.jl from C headers of HSL packages -include("C/juliahsl.jl") +include("C/libhsl.jl") include("C/hsl_ma48.jl") include("C/hsl_ma57.jl") include("C/hsl_ma77.jl")