From 5162d1f362f12d826334b24c6f116a7286b6afb6 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Fri, 9 Feb 2024 11:42:51 -0500 Subject: [PATCH] Update to latest SuiteSparse and auto-generate wrappers (#18) * Update clang generator * Remove klu_lib.jl and use auto-generated wrappers.jl * Only works on 1.10 - since it has to be synced with SuiteSparse * Update docs/make.jl * Update CI matrix to test only on 1.10 and introduce all platforms --- .github/workflows/ci.yml | 12 +- Project.toml | 4 +- docs/make.jl | 5 +- gen/Project.toml | 6 +- gen/generator.jl | 38 +- gen/generator.toml | 70 ++- lib/aarch64-apple-darwin20.jl | 424 ----------------- lib/aarch64-linux-gnu.jl | 424 ----------------- lib/aarch64-linux-musl.jl | 424 ----------------- lib/armv7l-linux-gnueabihf.jl | 424 ----------------- lib/armv7l-linux-musleabihf.jl | 424 ----------------- lib/i686-linux-gnu.jl | 424 ----------------- lib/i686-linux-musl.jl | 424 ----------------- lib/i686-w64-mingw32.jl | 424 ----------------- lib/klu_lib.jl | 452 ------------------ lib/powerpc64le-linux-gnu.jl | 424 ----------------- lib/x86_64-apple-darwin14.jl | 424 ----------------- lib/x86_64-linux-gnu.jl | 424 ----------------- lib/x86_64-linux-musl.jl | 424 ----------------- lib/x86_64-unknown-freebsd.jl | 424 ----------------- lib/x86_64-w64-mingw32.jl | 424 ----------------- src/KLU.jl | 72 +-- src/wrappers.jl | 846 +++++++++++++++++++++++++++++++++ 23 files changed, 937 insertions(+), 6504 deletions(-) delete mode 100644 lib/aarch64-apple-darwin20.jl delete mode 100644 lib/aarch64-linux-gnu.jl delete mode 100644 lib/aarch64-linux-musl.jl delete mode 100644 lib/armv7l-linux-gnueabihf.jl delete mode 100644 lib/armv7l-linux-musleabihf.jl delete mode 100644 lib/i686-linux-gnu.jl delete mode 100644 lib/i686-linux-musl.jl delete mode 100644 lib/i686-w64-mingw32.jl delete mode 100644 lib/klu_lib.jl delete mode 100644 lib/powerpc64le-linux-gnu.jl delete mode 100644 lib/x86_64-apple-darwin14.jl delete mode 100644 lib/x86_64-linux-gnu.jl delete mode 100644 lib/x86_64-linux-musl.jl delete mode 100644 lib/x86_64-unknown-freebsd.jl delete mode 100644 lib/x86_64-w64-mingw32.jl create mode 100644 src/wrappers.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 873c897..8ab8851 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,21 +17,17 @@ jobs: fail-fast: false matrix: version: - - '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'. - - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. + - '1.10' os: - ubuntu-latest - windows-latest - macos-latest arch: - x64 - include: - - os: ubuntu-latest + - x86 + exclude: + - os: macos-latest arch: x86 - version: 1 - - os: windows-latest - arch: x86 - version: 1 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v1 diff --git a/Project.toml b/Project.toml index d92bb9c..b81e417 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "KLU" uuid = "ef3ab10e-7fda-4108-b977-705223b18434" authors = ["Wimmerer and contributors"] -version = "0.4.1" +version = "0.5.0" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" @@ -9,7 +9,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c" [compat] -julia = "1.6" +julia = "1.10" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/docs/make.jl b/docs/make.jl index a0af2bb..1200629 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -4,13 +4,14 @@ using KLU makedocs( sitename = "KLU", format = Documenter.HTML(), - modules = [KLU] + modules = [KLU]; + warnonly = [:missing_docs, :cross_references], ) # Documenter can also automatically deploy documentation to gh-pages. # See "Hosting Documentation" and deploydocs() in the Documenter manual # for more information. deploydocs( - repo = "github.com/Wimmerer/KLU.jl.git", + repo = "github.com/JuliaSparse/KLU.jl.git", devbranch="main" ) diff --git a/gen/Project.toml b/gen/Project.toml index c1b177e..8a811dd 100644 --- a/gen/Project.toml +++ b/gen/Project.toml @@ -1,2 +1,6 @@ [deps] -Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31" \ No newline at end of file +Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31" +SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c" + +[compat] +Clang = "0.17" diff --git a/gen/generator.jl b/gen/generator.jl index 1f40c28..0050b28 100644 --- a/gen/generator.jl +++ b/gen/generator.jl @@ -20,37 +20,13 @@ klu_h = joinpath(include_dir, "klu.h") # load common option options = load_options(joinpath(@__DIR__, "generator.toml")) -# run generator for all platforms -for target in JLLEnvs.JLL_ENV_TRIPLES - @info "processing $target" +# run generator. Header files are not platform specific so we have only one. +options["general"]["output_file_path"] = joinpath(@__DIR__, "..", "src", "wrappers.jl") +args = get_default_args() +push!(args, "-I$include_dir") - options["general"]["output_file_path"] = joinpath(@__DIR__, "..", "lib", "$target.jl") +header_files = [klu_h] - args = get_default_args(target) - push!(args, "-I$include_dir") - if startswith(target, "x86_64") || startswith(target, "powerpc64le") || startswith(target, "aarch64") - push!(args, "-DSUN64 -DLONGBLAS='long long'") - end +ctx = create_context(header_files, args, options) - header_files = [klu_h] - - ctx = create_context(header_files, args, options) - - build!(ctx, BUILDSTAGE_NO_PRINTING) - - # custom rewriter - function rewrite!(dag::ExprDAG) - replace!(get_nodes(dag)) do node - filename = normpath(Clang.get_filename(node.cursor)) - if !contains(filename, "klu") - return ExprNode(node.id, Generators.Skip(), node.cursor, Expr[], node.adj) - end - return node - end - end - - rewrite!(ctx.dag) - - # print - build!(ctx, BUILDSTAGE_PRINTING_ONLY) -end +build!(ctx) diff --git a/gen/generator.toml b/gen/generator.toml index 310cd6c..685c41b 100644 --- a/gen/generator.toml +++ b/gen/generator.toml @@ -1,22 +1,80 @@ [general] -library_name = "libklu" +library_names = {"SuiteSparse_config.h" = "libsuitesparseconfig", "klu.h" = "libklu", "amd.h" = "libamd", "btf.h" = "libbtf"} use_julia_native_enum_type = true use_deterministic_symbol = true auto_mutability = true -printer_blacklist = [ +output_ignorelist = [ # Clang.jl cannot handle these macro correctly, skip for now. - "SuiteSparse_long_id" + "UMFPACK_COPYRIGHT", + "UMFPACK_LICENSE_PART1", + "UMFPACK_LICENSE_PART2", + "UMFPACK_LICENSE_PART3", + "SuiteSparse_long", + "SuiteSparse_long_max", + "SuiteSparse_long_id", + "CHOLMOD_CUBLAS_HANDLE", + "CHOLMOD_CUDASTREAM", + "CHOLMOD_CUDAEVENT", + # useless macros + "CHOLMOD_CPU_GEMM_CALLS", + "CHOLMOD_CPU_SYRK_CALLS", + "CHOLMOD_CPU_TRSM_CALLS", + "CHOLMOD_CPU_POTRF_CALLS", + "CHOLMOD_GPU_GEMM_CALLS", + "CHOLMOD_GPU_SYRK_CALLS", + "CHOLMOD_GPU_TRSM_CALLS", + "CHOLMOD_GPU_POTRF_CALLS", + "CHOLMOD_CPU_GEMM_TIME", + "CHOLMOD_CPU_SYRK_TIME", + "CHOLMOD_CPU_TRSM_TIME", + "CHOLMOD_CPU_POTRF_TIME", + "CHOLMOD_GPU_GEMM_TIME", + "CHOLMOD_GPU_SYRK_TIME", + "CHOLMOD_GPU_TRSM_TIME", + "CHOLMOD_GPU_POTRF_TIME", + "CHOLMOD_ASSEMBLE_TIME", + "CHOLMOD_ASSEMBLE_TIME2", + "SuiteSparse_long_idd", + "SUITESPARSE_COMPILER_MAJOR", + "SUITESPARSE_COMPILER_MINOR", + "SUITESPARSE_COMPILER_SUB", + "SUITESPARSE_COMPILER_NAME", + "SUITESPARSE_STDC_VERSION", + "SUITESPARSE_RESTRICT", + "SUITESPARSE_LAPACK_[A-Z0-9]+", + "SUITESPARSE_BLAS_[A-Z0-9]+", + "SUITESPARSE_BLAS_DNRM2", + "SUITESPARSE_BLAS_DZNRM2", + "UMFPACK_VERSION", ] [codegen] -use_ccall_macro = true +use_ccall_macro = false [codegen.macro] macro_mode = "basic" -functionlike_macro_whitelist = [ +functionlike_macro_includelist = [ "SUITESPARSE_VER_CODE", - "KLU_VERSION_CODE" + "SUITESPARSE__VERCODE", + "CHOLMOD_VER_CODE", + "CHOLMOD__VERCODE", + "SPQR_VER_CODE", + "SPQR__VERCODE", + "AMD_VERSION_CODE", + "AMD__VERCODE", + "UMFPACK_VER_CODE", + "UMFPACK__VERCODE", + "COLAMD_VERSION_CODE", + "COLAMD__VERCODE", + "KLU_VERSION_CODE", + "KLU__VERCODE", + "BTF_VERSION_CODE", + "BTF__VERCODE", + "CCOLAMD_VERSION_CODE", + "CCOLAMD__VERCODE", + "KLU_VERSION_CODE", + "KLU__VERCODE", ] \ No newline at end of file diff --git a/lib/aarch64-apple-darwin20.jl b/lib/aarch64-apple-darwin20.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/aarch64-apple-darwin20.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/aarch64-linux-gnu.jl b/lib/aarch64-linux-gnu.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/aarch64-linux-gnu.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/aarch64-linux-musl.jl b/lib/aarch64-linux-musl.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/aarch64-linux-musl.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/armv7l-linux-gnueabihf.jl b/lib/armv7l-linux-gnueabihf.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/armv7l-linux-gnueabihf.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/armv7l-linux-musleabihf.jl b/lib/armv7l-linux-musleabihf.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/armv7l-linux-musleabihf.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/i686-linux-gnu.jl b/lib/i686-linux-gnu.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/i686-linux-gnu.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/i686-linux-musl.jl b/lib/i686-linux-musl.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/i686-linux-musl.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/i686-w64-mingw32.jl b/lib/i686-w64-mingw32.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/i686-w64-mingw32.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/klu_lib.jl b/lib/klu_lib.jl deleted file mode 100644 index 8465c28..0000000 --- a/lib/klu_lib.jl +++ /dev/null @@ -1,452 +0,0 @@ -module LibKLU -const libklu = :libklu - -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Int64 - nz::Int64 - P::Ptr{Int64} - Q::Ptr{Int64} - R::Ptr{Int64} - nzoff::Int64 - nblocks::Int64 - maxblock::Int64 - ordering::Int64 - do_btf::Int64 - structural_rank::Int64 - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Int64 - nblocks::Int64 - lnz::Int64 - unz::Int64 - max_lnz_block::Int64 - max_unz_block::Int64 - Pnum::Ptr{Int64} - Pinv::Ptr{Int64} - Lip::Ptr{Int64} - Uip::Ptr{Int64} - Llen::Ptr{Int64} - Ulen::Ptr{Int64} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Int64} - Offp::Ptr{Int64} - Offi::Ptr{Int64} - Offx::Ptr{Cvoid} - nzoff::Int64 - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Int64 - ordering::Int64 - scale::Int64 - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Int64 - status::Int64 - nrealloc::Int64 - structural_rank::Int64 - numerical_rank::Int64 - singular_col::Int64 - noffdiag::Int64 - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Int64 -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Int64, arg2::Ptr{Int64}, arg3::Ptr{Int64}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Int64, arg2::Ptr{Int64}, arg3::Ptr{Int64}, arg4::Ptr{Int64}, arg5::Ptr{Int64}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Int64, arg4::Int64, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Int64, arg4::Int64, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Int64, arg4::Int64, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Int64, arg4::Int64, arg5::Ptr{Cdouble}, arg6::Int64, arg7::Ptr{klu_l_common})::Int64 -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Int64 -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Int64 -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Int64 -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Int64}, arg2::Ptr{Int64}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Int64 -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Int64}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Int64 -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Int64}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Int64 -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Int64 -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Int64, arg2::Int64, arg3::Ptr{Int64}, arg4::Ptr{Int64}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Int64}, arg8::Ptr{klu_l_common})::Int64 -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Int64, arg2::Int64, arg3::Ptr{Int64}, arg4::Ptr{Int64}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Int64}, arg8::Ptr{klu_l_common})::Int64 -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Int64}, arg4::Ptr{Int64}, arg5::Ptr{Cdouble}, arg6::Ptr{Int64}, arg7::Ptr{Int64}, arg8::Ptr{Cdouble}, arg9::Ptr{Int64}, arg10::Ptr{Int64}, arg11::Ptr{Cdouble}, arg12::Ptr{Int64}, arg13::Ptr{Int64}, arg14::Ptr{Cdouble}, arg15::Ptr{Int64}, arg16::Ptr{klu_l_common})::Int64 -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Int64}, arg4::Ptr{Int64}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Int64}, arg8::Ptr{Int64}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Int64}, arg12::Ptr{Int64}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Int64}, arg16::Ptr{Int64}, arg17::Ptr{Cdouble}, arg18::Ptr{Int64}, arg19::Ptr{klu_l_common})::Int64 -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -KLU_VERSION_CODE(main, sub) = main * 1000 + sub - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - -const SuiteSparse_long = Int64 - -const LONG_MAX = typemax(Int64) - -const SuiteSparse_long_max = LONG_MAX - -const SuiteSparse_long_idd = "ld" - -const SUITESPARSE_DATE = "May 17, 2021" - -SUITESPARSE_VER_CODE(main, sub) = main * 1000 + sub - -const SUITESPARSE_MAIN_VERSION = 5 - -const SUITESPARSE_SUB_VERSION = 10 - -const SUITESPARSE_SUBSUB_VERSION = 1 - -const SUITESPARSE_VERSION = SUITESPARSE_VER_CODE(SUITESPARSE_MAIN_VERSION, SUITESPARSE_SUB_VERSION) - - - -end diff --git a/lib/powerpc64le-linux-gnu.jl b/lib/powerpc64le-linux-gnu.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/powerpc64le-linux-gnu.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/x86_64-apple-darwin14.jl b/lib/x86_64-apple-darwin14.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/x86_64-apple-darwin14.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/x86_64-linux-gnu.jl b/lib/x86_64-linux-gnu.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/x86_64-linux-gnu.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/x86_64-linux-musl.jl b/lib/x86_64-linux-musl.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/x86_64-linux-musl.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/x86_64-unknown-freebsd.jl b/lib/x86_64-unknown-freebsd.jl deleted file mode 100644 index 151c835..0000000 --- a/lib/x86_64-unknown-freebsd.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clong - nz::Clong - P::Ptr{Clong} - Q::Ptr{Clong} - R::Ptr{Clong} - nzoff::Clong - nblocks::Clong - maxblock::Clong - ordering::Clong - do_btf::Clong - structural_rank::Clong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clong - nblocks::Clong - lnz::Clong - unz::Clong - max_lnz_block::Clong - max_unz_block::Clong - Pnum::Ptr{Clong} - Pinv::Ptr{Clong} - Lip::Ptr{Clong} - Uip::Ptr{Clong} - Llen::Ptr{Clong} - Ulen::Ptr{Clong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clong} - Offp::Ptr{Clong} - Offi::Ptr{Clong} - Offx::Ptr{Cvoid} - nzoff::Clong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clong - ordering::Clong - scale::Clong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clong - status::Clong - nrealloc::Clong - structural_rank::Clong - numerical_rank::Clong - singular_col::Clong - noffdiag::Clong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clong, arg2::Ptr{Clong}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Clong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clong, arg4::Clong, arg5::Ptr{Cdouble}, arg6::Clong, arg7::Ptr{klu_l_common})::Clong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clong}, arg2::Ptr{Clong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clong, arg2::Clong, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{klu_l_common})::Clong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clong}, arg7::Ptr{Clong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clong}, arg10::Ptr{Clong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clong}, arg13::Ptr{Clong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{klu_l_common})::Clong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clong}, arg4::Ptr{Clong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clong}, arg8::Ptr{Clong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clong}, arg12::Ptr{Clong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clong}, arg16::Ptr{Clong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clong}, arg19::Ptr{klu_l_common})::Clong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/lib/x86_64-w64-mingw32.jl b/lib/x86_64-w64-mingw32.jl deleted file mode 100644 index ef5fff9..0000000 --- a/lib/x86_64-w64-mingw32.jl +++ /dev/null @@ -1,424 +0,0 @@ -mutable struct klu_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Cint - nz::Cint - P::Ptr{Cint} - Q::Ptr{Cint} - R::Ptr{Cint} - nzoff::Cint - nblocks::Cint - maxblock::Cint - ordering::Cint - do_btf::Cint - structural_rank::Cint - klu_symbolic() = new() -end - -mutable struct klu_l_symbolic - symmetry::Cdouble - est_flops::Cdouble - lnz::Cdouble - unz::Cdouble - Lnz::Ptr{Cdouble} - n::Clonglong - nz::Clonglong - P::Ptr{Clonglong} - Q::Ptr{Clonglong} - R::Ptr{Clonglong} - nzoff::Clonglong - nblocks::Clonglong - maxblock::Clonglong - ordering::Clonglong - do_btf::Clonglong - structural_rank::Clonglong - klu_l_symbolic() = new() -end - -mutable struct klu_numeric - n::Cint - nblocks::Cint - lnz::Cint - unz::Cint - max_lnz_block::Cint - max_unz_block::Cint - Pnum::Ptr{Cint} - Pinv::Ptr{Cint} - Lip::Ptr{Cint} - Uip::Ptr{Cint} - Llen::Ptr{Cint} - Ulen::Ptr{Cint} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Cint} - Offp::Ptr{Cint} - Offi::Ptr{Cint} - Offx::Ptr{Cvoid} - nzoff::Cint - klu_numeric() = new() -end - -mutable struct klu_l_numeric - n::Clonglong - nblocks::Clonglong - lnz::Clonglong - unz::Clonglong - max_lnz_block::Clonglong - max_unz_block::Clonglong - Pnum::Ptr{Clonglong} - Pinv::Ptr{Clonglong} - Lip::Ptr{Clonglong} - Uip::Ptr{Clonglong} - Llen::Ptr{Clonglong} - Ulen::Ptr{Clonglong} - LUbx::Ptr{Ptr{Cvoid}} - LUsize::Ptr{Csize_t} - Udiag::Ptr{Cvoid} - Rs::Ptr{Cdouble} - worksize::Csize_t - Work::Ptr{Cvoid} - Xwork::Ptr{Cvoid} - Iwork::Ptr{Clonglong} - Offp::Ptr{Clonglong} - Offi::Ptr{Clonglong} - Offx::Ptr{Cvoid} - nzoff::Clonglong - klu_l_numeric() = new() -end - -mutable struct klu_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Cint - ordering::Cint - scale::Cint - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Cint - status::Cint - nrealloc::Cint - structural_rank::Cint - numerical_rank::Cint - singular_col::Cint - noffdiag::Cint - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_common_struct() = new() -end - -const klu_common = klu_common_struct - -mutable struct klu_l_common_struct - tol::Cdouble - memgrow::Cdouble - initmem_amd::Cdouble - initmem::Cdouble - maxwork::Cdouble - btf::Clonglong - ordering::Clonglong - scale::Clonglong - user_order::Ptr{Cvoid} - user_data::Ptr{Cvoid} - halt_if_singular::Clonglong - status::Clonglong - nrealloc::Clonglong - structural_rank::Clonglong - numerical_rank::Clonglong - singular_col::Clonglong - noffdiag::Clonglong - flops::Cdouble - rcond::Cdouble - condest::Cdouble - rgrowth::Cdouble - work::Cdouble - memusage::Csize_t - mempeak::Csize_t - klu_l_common_struct() = new() -end - -const klu_l_common = klu_l_common_struct - -function klu_defaults(Common) - @ccall libklu.klu_defaults(Common::Ptr{klu_common})::Cint -end - -function klu_l_defaults(Common) - @ccall libklu.klu_l_defaults(Common::Ptr{klu_l_common})::Clonglong -end - -function klu_analyze(n, Ap, Ai, Common) - @ccall libklu.klu_analyze(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze(arg1, arg2, arg3, Common) - @ccall libklu.klu_l_analyze(arg1::Clonglong, arg2::Ptr{Clonglong}, arg3::Ptr{Clonglong}, Common::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_analyze_given(n, Ap, Ai, P, Q, Common) - @ccall libklu.klu_analyze_given(n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, P::Ptr{Cint}, Q::Ptr{Cint}, Common::Ptr{klu_common})::Ptr{klu_symbolic} -end - -function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_analyze_given(arg1::Clonglong, arg2::Ptr{Clonglong}, arg3::Ptr{Clonglong}, arg4::Ptr{Clonglong}, arg5::Ptr{Clonglong}, arg6::Ptr{klu_l_common})::Ptr{klu_l_symbolic} -end - -function klu_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) - @ccall libklu.klu_z_factor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Common::Ptr{klu_common})::Ptr{klu_numeric} -end - -function klu_l_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_factor(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_factor(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_common})::Ptr{klu_l_numeric} -end - -function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_z_solve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clonglong, arg4::Clonglong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_solve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clonglong, arg4::Clonglong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) - @ccall libklu.klu_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, Common::Ptr{klu_common})::Cint -end - -function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) - @ccall libklu.klu_z_tsolve(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, ldim::Cint, nrhs::Cint, B::Ptr{Cdouble}, conj_solve::Cint, Common::Ptr{klu_common})::Cint -end - -function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clonglong, arg4::Clonglong, arg5::Ptr{Cdouble}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) - @ccall libklu.klu_zl_tsolve(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Clonglong, arg4::Clonglong, arg5::Ptr{Cdouble}, arg6::Clonglong, arg7::Ptr{klu_l_common})::Clonglong -end - -function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_refactor(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_refactor(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_refactor(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_free_symbolic(Symbolic, Common) - @ccall libklu.klu_free_symbolic(Symbolic::Ptr{Ptr{klu_symbolic}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_symbolic(arg1, arg2) - @ccall libklu.klu_l_free_symbolic(arg1::Ptr{Ptr{klu_l_symbolic}}, arg2::Ptr{klu_l_common})::Clonglong -end - -function klu_free_numeric(Numeric, Common) - @ccall libklu.klu_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_z_free_numeric(Numeric, Common) - @ccall libklu.klu_z_free_numeric(Numeric::Ptr{Ptr{klu_numeric}}, Common::Ptr{klu_common})::Cint -end - -function klu_l_free_numeric(arg1, arg2) - @ccall libklu.klu_l_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_free_numeric(arg1, arg2) - @ccall libklu.klu_zl_free_numeric(arg1::Ptr{Ptr{klu_l_numeric}}, arg2::Ptr{klu_l_common})::Clonglong -end - -function klu_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_sort(Symbolic, Numeric, Common) - @ccall libklu.klu_z_sort(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_sort(arg1, arg2, arg3) - @ccall libklu.klu_l_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_sort(arg1, arg2, arg3) - @ccall libklu.klu_zl_sort(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_flops(Symbolic, Numeric, Common) - @ccall libklu.klu_z_flops(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_flops(arg1, arg2, arg3) - @ccall libklu.klu_l_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_flops(arg1, arg2, arg3) - @ccall libklu.klu_zl_flops(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_rgrowth(Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_l_rgrowth(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) - @ccall libklu.klu_zl_rgrowth(arg1::Ptr{Clonglong}, arg2::Ptr{Clonglong}, arg3::Ptr{Cdouble}, arg4::Ptr{klu_l_symbolic}, arg5::Ptr{klu_l_numeric}, arg6::Ptr{klu_l_common})::Clonglong -end - -function klu_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) - @ccall libklu.klu_z_condest(Ap::Ptr{Cint}, Ax::Ptr{Cdouble}, Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_condest(arg1::Ptr{Clonglong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_zl_condest(arg1::Ptr{Clonglong}, arg2::Ptr{Cdouble}, arg3::Ptr{klu_l_symbolic}, arg4::Ptr{klu_l_numeric}, arg5::Ptr{klu_l_common})::Clonglong -end - -function klu_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_z_rcond(Symbolic, Numeric, Common) - @ccall libklu.klu_z_rcond(Symbolic::Ptr{klu_symbolic}, Numeric::Ptr{klu_numeric}, Common::Ptr{klu_common})::Cint -end - -function klu_l_rcond(arg1, arg2, arg3) - @ccall libklu.klu_l_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_rcond(arg1, arg2, arg3) - @ccall libklu.klu_zl_rcond(arg1::Ptr{klu_l_symbolic}, arg2::Ptr{klu_l_numeric}, arg3::Ptr{klu_l_common})::Clonglong -end - -function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) - @ccall libklu.klu_z_scale(scale::Cint, n::Cint, Ap::Ptr{Cint}, Ai::Ptr{Cint}, Ax::Ptr{Cdouble}, Rs::Ptr{Cdouble}, W::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_l_scale(arg1::Clonglong, arg2::Clonglong, arg3::Ptr{Clonglong}, arg4::Ptr{Clonglong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clonglong}, arg8::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - @ccall libklu.klu_zl_scale(arg1::Clonglong, arg2::Clonglong, arg3::Ptr{Clonglong}, arg4::Ptr{Clonglong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clonglong}, arg8::Ptr{klu_l_common})::Clonglong -end - -function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) - @ccall libklu.klu_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) - @ccall libklu.klu_z_extract(Numeric::Ptr{klu_numeric}, Symbolic::Ptr{klu_symbolic}, Lp::Ptr{Cint}, Li::Ptr{Cint}, Lx::Ptr{Cdouble}, Lz::Ptr{Cdouble}, Up::Ptr{Cint}, Ui::Ptr{Cint}, Ux::Ptr{Cdouble}, Uz::Ptr{Cdouble}, Fp::Ptr{Cint}, Fi::Ptr{Cint}, Fx::Ptr{Cdouble}, Fz::Ptr{Cdouble}, P::Ptr{Cint}, Q::Ptr{Cint}, Rs::Ptr{Cdouble}, R::Ptr{Cint}, Common::Ptr{klu_common})::Cint -end - -function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) - @ccall libklu.klu_l_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clonglong}, arg4::Ptr{Clonglong}, arg5::Ptr{Cdouble}, arg6::Ptr{Clonglong}, arg7::Ptr{Clonglong}, arg8::Ptr{Cdouble}, arg9::Ptr{Clonglong}, arg10::Ptr{Clonglong}, arg11::Ptr{Cdouble}, arg12::Ptr{Clonglong}, arg13::Ptr{Clonglong}, arg14::Ptr{Cdouble}, arg15::Ptr{Clonglong}, arg16::Ptr{klu_l_common})::Clonglong -end - -function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) - @ccall libklu.klu_zl_extract(arg1::Ptr{klu_l_numeric}, arg2::Ptr{klu_l_symbolic}, arg3::Ptr{Clonglong}, arg4::Ptr{Clonglong}, arg5::Ptr{Cdouble}, arg6::Ptr{Cdouble}, arg7::Ptr{Clonglong}, arg8::Ptr{Clonglong}, arg9::Ptr{Cdouble}, arg10::Ptr{Cdouble}, arg11::Ptr{Clonglong}, arg12::Ptr{Clonglong}, arg13::Ptr{Cdouble}, arg14::Ptr{Cdouble}, arg15::Ptr{Clonglong}, arg16::Ptr{Clonglong}, arg17::Ptr{Cdouble}, arg18::Ptr{Clonglong}, arg19::Ptr{klu_l_common})::Clonglong -end - -function klu_malloc(n, size, Common) - @ccall libklu.klu_malloc(n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_free(p, n, size, Common) - @ccall libklu.klu_free(p::Ptr{Cvoid}, n::Csize_t, size::Csize_t, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_realloc(nnew, nold, size, p, Common) - @ccall libklu.klu_realloc(nnew::Csize_t, nold::Csize_t, size::Csize_t, p::Ptr{Cvoid}, Common::Ptr{klu_common})::Ptr{Cvoid} -end - -function klu_l_malloc(arg1, arg2, arg3) - @ccall libklu.klu_l_malloc(arg1::Csize_t, arg2::Csize_t, arg3::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_free(arg1, arg2, arg3, arg4) - @ccall libklu.klu_l_free(arg1::Ptr{Cvoid}, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{klu_l_common})::Ptr{Cvoid} -end - -function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) - @ccall libklu.klu_l_realloc(arg1::Csize_t, arg2::Csize_t, arg3::Csize_t, arg4::Ptr{Cvoid}, arg5::Ptr{klu_l_common})::Ptr{Cvoid} -end - -const KLU_OK = 0 - -const KLU_SINGULAR = 1 - -const KLU_OUT_OF_MEMORY = -2 - -const KLU_INVALID = -3 - -const KLU_TOO_LARGE = -4 - -const KLU_DATE = "Mar 12, 2018" - -const KLU_MAIN_VERSION = 1 - -const KLU_SUB_VERSION = 3 - -const KLU_SUBSUB_VERSION = 9 - -const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) - diff --git a/src/KLU.jl b/src/KLU.jl index 16c11c2..ac15504 100644 --- a/src/KLU.jl +++ b/src/KLU.jl @@ -6,8 +6,8 @@ import SparseArrays: nnz export klu, klu! -include("../lib/klu_lib.jl") -using .LibKLU +const libklu = :libklu +include("wrappers.jl") import Base: (\), size, getproperty, setproperty!, propertynames, show @@ -25,66 +25,6 @@ function increment!(A::AbstractArray{T}) where T<:Integer end increment(A::AbstractArray{<:Integer}) = increment!(copy(A)) -using .LibKLU: - SuiteSparse_long, - klu_l_common, - klu_common, - klu_l_defaults, - klu_defaults, - klu_l_symbolic, - klu_symbolic, - klu_l_free_symbolic, - klu_free_symbolic, - klu_l_numeric, - klu_numeric, - klu_l_free_numeric, - klu_zl_free_numeric, - klu_free_numeric, - klu_z_free_numeric, - KLU_OK, - KLU_SINGULAR, - KLU_OUT_OF_MEMORY, - KLU_INVALID, - KLU_TOO_LARGE, - klu_l_analyze, - klu_analyze, - klu_l_factor, - klu_factor, - klu_zl_factor, - klu_z_factor, - klu_l_solve, - klu_zl_solve, - klu_solve, - klu_z_solve, - klu_l_tsolve, - klu_zl_tsolve, - klu_tsolve, - klu_z_tsolve, - klu_l_extract, - klu_zl_extract, - klu_extract, - klu_z_extract, - klu_l_sort, - klu_zl_sort, - klu_sort, - klu_z_sort, - klu_refactor, - klu_z_refactor, - klu_l_refactor, - klu_zl_refactor, - klu_rgrowth, - klu_z_rgrowth, - klu_l_rgrowth, - klu_zl_rgrowth, - klu_rcond, - klu_z_rcond, - klu_l_rcond, - klu_zl_rcond, - klu_condest, - klu_z_condest, - klu_l_condest, - klu_zl_condest - using LinearAlgebra const AdjointFact = isdefined(LinearAlgebra, :AdjointFactorization) ? LinearAlgebra.AdjointFactorization : Adjoint @@ -93,7 +33,7 @@ const TransposeFact = isdefined(LinearAlgebra, :TransposeFactorization) ? Linear const KLUTypes = Union{Float64, ComplexF64} const KLUValueTypes = (:Float64, :ComplexF64) -if sizeof(SuiteSparse_long) == 4 +if sizeof(Int) == 4 const KLUITypes = Int32 const KLUIndexTypes = (:Int32,) else @@ -505,7 +445,7 @@ for Tv ∈ KLUValueTypes, Ti ∈ KLUIndexTypes """ rcond(K::KLUFactorization) - Cheaply estimate the reciprocal condition number. + Cheaply estimate the reciprocal condition number. """ function rcond(K::AbstractKLUFactorization{$Tv, $Ti}) K._numeric == C_NULL && klu_factor!(K) @@ -636,8 +576,8 @@ function klu!(K::KLUFactorization{U}, S::SparseMatrixCSC{U}) where {U} size(K) == size(S) || throw(ArgumentError("Sizes of K and S must match.")) increment!(K.colptr) increment!(K.rowval) - K.colptr == S.colptr && K.rowval == S.rowval || - (decrement!(K.colptr); decrement!(K.rowval); + K.colptr == S.colptr && K.rowval == S.rowval || + (decrement!(K.colptr); decrement!(K.rowval); throw(ArgumentError("The pattern of the original matrix must match the pattern of the refactor.")) ) decrement!(K.colptr) diff --git a/src/wrappers.jl b/src/wrappers.jl new file mode 100644 index 0000000..c537138 --- /dev/null +++ b/src/wrappers.jl @@ -0,0 +1,846 @@ +function SuiteSparse_config_printf_func_get() + ccall((:SuiteSparse_config_printf_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_malloc_func_get() + ccall((:SuiteSparse_config_malloc_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_calloc_func_get() + ccall((:SuiteSparse_config_calloc_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_realloc_func_get() + ccall((:SuiteSparse_config_realloc_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_free_func_get() + ccall((:SuiteSparse_config_free_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_hypot_func_get() + ccall((:SuiteSparse_config_hypot_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_divcomplex_func_get() + ccall((:SuiteSparse_config_divcomplex_func_get, libsuitesparseconfig), Ptr{Cvoid}, ()) +end + +function SuiteSparse_config_malloc_func_set(malloc_func) + ccall((:SuiteSparse_config_malloc_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), malloc_func) +end + +function SuiteSparse_config_calloc_func_set(calloc_func) + ccall((:SuiteSparse_config_calloc_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), calloc_func) +end + +function SuiteSparse_config_realloc_func_set(realloc_func) + ccall((:SuiteSparse_config_realloc_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), realloc_func) +end + +function SuiteSparse_config_free_func_set(free_func) + ccall((:SuiteSparse_config_free_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), free_func) +end + +function SuiteSparse_config_printf_func_set(printf_func) + ccall((:SuiteSparse_config_printf_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), printf_func) +end + +function SuiteSparse_config_hypot_func_set(hypot_func) + ccall((:SuiteSparse_config_hypot_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), hypot_func) +end + +function SuiteSparse_config_divcomplex_func_set(divcomplex_func) + ccall((:SuiteSparse_config_divcomplex_func_set, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), divcomplex_func) +end + +function SuiteSparse_config_malloc(s) + ccall((:SuiteSparse_config_malloc, libsuitesparseconfig), Ptr{Cvoid}, (Csize_t,), s) +end + +function SuiteSparse_config_calloc(n, s) + ccall((:SuiteSparse_config_calloc, libsuitesparseconfig), Ptr{Cvoid}, (Csize_t, Csize_t), n, s) +end + +function SuiteSparse_config_realloc(arg1, s) + ccall((:SuiteSparse_config_realloc, libsuitesparseconfig), Ptr{Cvoid}, (Ptr{Cvoid}, Csize_t), arg1, s) +end + +function SuiteSparse_config_free(arg1) + ccall((:SuiteSparse_config_free, libsuitesparseconfig), Cvoid, (Ptr{Cvoid},), arg1) +end + +function SuiteSparse_config_hypot(x, y) + ccall((:SuiteSparse_config_hypot, libsuitesparseconfig), Cdouble, (Cdouble, Cdouble), x, y) +end + +function SuiteSparse_config_divcomplex(xr, xi, yr, yi, zr, zi) + ccall((:SuiteSparse_config_divcomplex, libsuitesparseconfig), Cint, (Cdouble, Cdouble, Cdouble, Cdouble, Ptr{Cdouble}, Ptr{Cdouble}), xr, xi, yr, yi, zr, zi) +end + +function SuiteSparse_start() + ccall((:SuiteSparse_start, libsuitesparseconfig), Cvoid, ()) +end + +function SuiteSparse_finish() + ccall((:SuiteSparse_finish, libsuitesparseconfig), Cvoid, ()) +end + +function SuiteSparse_malloc(nitems, size_of_item) + ccall((:SuiteSparse_malloc, libsuitesparseconfig), Ptr{Cvoid}, (Csize_t, Csize_t), nitems, size_of_item) +end + +function SuiteSparse_calloc(nitems, size_of_item) + ccall((:SuiteSparse_calloc, libsuitesparseconfig), Ptr{Cvoid}, (Csize_t, Csize_t), nitems, size_of_item) +end + +function SuiteSparse_realloc(nitems_new, nitems_old, size_of_item, p, ok) + ccall((:SuiteSparse_realloc, libsuitesparseconfig), Ptr{Cvoid}, (Csize_t, Csize_t, Csize_t, Ptr{Cvoid}, Ptr{Cint}), nitems_new, nitems_old, size_of_item, p, ok) +end + +function SuiteSparse_free(p) + ccall((:SuiteSparse_free, libsuitesparseconfig), Ptr{Cvoid}, (Ptr{Cvoid},), p) +end + +function SuiteSparse_tic(tic) + ccall((:SuiteSparse_tic, libsuitesparseconfig), Cvoid, (Ptr{Cdouble},), tic) +end + +function SuiteSparse_toc(tic) + ccall((:SuiteSparse_toc, libsuitesparseconfig), Cdouble, (Ptr{Cdouble},), tic) +end + +function SuiteSparse_time() + ccall((:SuiteSparse_time, libsuitesparseconfig), Cdouble, ()) +end + +function SuiteSparse_hypot(x, y) + ccall((:SuiteSparse_hypot, libsuitesparseconfig), Cdouble, (Cdouble, Cdouble), x, y) +end + +function SuiteSparse_divcomplex(ar, ai, br, bi, cr, ci) + ccall((:SuiteSparse_divcomplex, libsuitesparseconfig), Cint, (Cdouble, Cdouble, Cdouble, Cdouble, Ptr{Cdouble}, Ptr{Cdouble}), ar, ai, br, bi, cr, ci) +end + +function SuiteSparse_version(version) + ccall((:SuiteSparse_version, libsuitesparseconfig), Cint, (Ptr{Cint},), version) +end + +function SuiteSparse_BLAS_library() + ccall((:SuiteSparse_BLAS_library, libsuitesparseconfig), Ptr{Cchar}, ()) +end + +function SuiteSparse_BLAS_integer_size() + ccall((:SuiteSparse_BLAS_integer_size, libsuitesparseconfig), Csize_t, ()) +end + +function amd_order(n, Ap, Ai, P, Control, Info) + ccall((:amd_order, libamd), Cint, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}), n, Ap, Ai, P, Control, Info) +end + +function amd_l_order(n, Ap, Ai, P, Control, Info) + ccall((:amd_l_order, libamd), Cint, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}), n, Ap, Ai, P, Control, Info) +end + +function amd_2(n, Pe, Iw, Len, iwlen, pfree, Nv, Next, Last, Head, Elen, Degree, W, Control, Info) + ccall((:amd_2, libamd), Cvoid, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Int32, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}), n, Pe, Iw, Len, iwlen, pfree, Nv, Next, Last, Head, Elen, Degree, W, Control, Info) +end + +function amd_l2(n, Pe, Iw, Len, iwlen, pfree, Nv, Next, Last, Head, Elen, Degree, W, Control, Info) + ccall((:amd_l2, libamd), Cvoid, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Int64, Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}), n, Pe, Iw, Len, iwlen, pfree, Nv, Next, Last, Head, Elen, Degree, W, Control, Info) +end + +function amd_valid(n_row, n_col, Ap, Ai) + ccall((:amd_valid, libamd), Cint, (Int32, Int32, Ptr{Int32}, Ptr{Int32}), n_row, n_col, Ap, Ai) +end + +function amd_l_valid(n_row, n_col, Ap, Ai) + ccall((:amd_l_valid, libamd), Cint, (Int64, Int64, Ptr{Int64}, Ptr{Int64}), n_row, n_col, Ap, Ai) +end + +function amd_defaults(Control) + ccall((:amd_defaults, libamd), Cvoid, (Ptr{Cdouble},), Control) +end + +function amd_l_defaults(Control) + ccall((:amd_l_defaults, libamd), Cvoid, (Ptr{Cdouble},), Control) +end + +function amd_control(Control) + ccall((:amd_control, libamd), Cvoid, (Ptr{Cdouble},), Control) +end + +function amd_l_control(Control) + ccall((:amd_l_control, libamd), Cvoid, (Ptr{Cdouble},), Control) +end + +function amd_info(Info) + ccall((:amd_info, libamd), Cvoid, (Ptr{Cdouble},), Info) +end + +function amd_l_info(Info) + ccall((:amd_l_info, libamd), Cvoid, (Ptr{Cdouble},), Info) +end + +function colamd_recommended(nnz, n_row, n_col) + ccall((:colamd_recommended, libamd), Csize_t, (Int32, Int32, Int32), nnz, n_row, n_col) +end + +function colamd_l_recommended(nnz, n_row, n_col) + ccall((:colamd_l_recommended, libamd), Csize_t, (Int64, Int64, Int64), nnz, n_row, n_col) +end + +function colamd_set_defaults(knobs) + ccall((:colamd_set_defaults, libamd), Cvoid, (Ptr{Cdouble},), knobs) +end + +function colamd_l_set_defaults(knobs) + ccall((:colamd_l_set_defaults, libamd), Cvoid, (Ptr{Cdouble},), knobs) +end + +function colamd(n_row, n_col, Alen, A, p, knobs, stats) + ccall((:colamd, libamd), Cint, (Int32, Int32, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}), n_row, n_col, Alen, A, p, knobs, stats) +end + +function colamd_l(n_row, n_col, Alen, A, p, knobs, stats) + ccall((:colamd_l, libamd), Cint, (Int64, Int64, Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}), n_row, n_col, Alen, A, p, knobs, stats) +end + +function symamd(n, A, p, perm, knobs, stats, allocate, release) + ccall((:symamd, libamd), Cint, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Cvoid}, Ptr{Cvoid}), n, A, p, perm, knobs, stats, allocate, release) +end + +function symamd_l(n, A, p, perm, knobs, stats, allocate, release) + ccall((:symamd_l, libamd), Cint, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Cvoid}, Ptr{Cvoid}), n, A, p, perm, knobs, stats, allocate, release) +end + +function colamd_report(stats) + ccall((:colamd_report, libamd), Cvoid, (Ptr{Int32},), stats) +end + +function colamd_l_report(stats) + ccall((:colamd_l_report, libamd), Cvoid, (Ptr{Int64},), stats) +end + +function symamd_report(stats) + ccall((:symamd_report, libamd), Cvoid, (Ptr{Int32},), stats) +end + +function symamd_l_report(stats) + ccall((:symamd_l_report, libamd), Cvoid, (Ptr{Int64},), stats) +end + +function btf_maxtrans(nrow, ncol, Ap, Ai, maxwork, work, Match, Work) + ccall((:btf_maxtrans, libbtf), Int32, (Int32, Int32, Ptr{Int32}, Ptr{Int32}, Cdouble, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}), nrow, ncol, Ap, Ai, maxwork, work, Match, Work) +end + +function btf_l_maxtrans(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) + ccall((:btf_l_maxtrans, libbtf), Int64, (Int64, Int64, Ptr{Int64}, Ptr{Int64}, Cdouble, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) +end + +function btf_strongcomp(n, Ap, Ai, Q, P, R, Work) + ccall((:btf_strongcomp, libbtf), Int32, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}), n, Ap, Ai, Q, P, R, Work) +end + +function btf_l_strongcomp(arg1, arg2, arg3, arg4, arg5, arg6, arg7) + ccall((:btf_l_strongcomp, libbtf), Int64, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}), arg1, arg2, arg3, arg4, arg5, arg6, arg7) +end + +function btf_order(n, Ap, Ai, maxwork, work, P, Q, R, nmatch, Work) + ccall((:btf_order, libbtf), Int32, (Int32, Ptr{Int32}, Ptr{Int32}, Cdouble, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}), n, Ap, Ai, maxwork, work, P, Q, R, nmatch, Work) +end + +function btf_l_order(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) + ccall((:btf_l_order, libbtf), Int64, (Int64, Ptr{Int64}, Ptr{Int64}, Cdouble, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) +end + +mutable struct klu_symbolic + symmetry::Cdouble + est_flops::Cdouble + lnz::Cdouble + unz::Cdouble + Lnz::Ptr{Cdouble} + n::Int32 + nz::Int32 + P::Ptr{Int32} + Q::Ptr{Int32} + R::Ptr{Int32} + nzoff::Int32 + nblocks::Int32 + maxblock::Int32 + ordering::Int32 + do_btf::Int32 + structural_rank::Int32 + klu_symbolic() = new() +end + +mutable struct klu_l_symbolic + symmetry::Cdouble + est_flops::Cdouble + lnz::Cdouble + unz::Cdouble + Lnz::Ptr{Cdouble} + n::Int64 + nz::Int64 + P::Ptr{Int64} + Q::Ptr{Int64} + R::Ptr{Int64} + nzoff::Int64 + nblocks::Int64 + maxblock::Int64 + ordering::Int64 + do_btf::Int64 + structural_rank::Int64 + klu_l_symbolic() = new() +end + +mutable struct klu_numeric + n::Int32 + nblocks::Int32 + lnz::Int32 + unz::Int32 + max_lnz_block::Int32 + max_unz_block::Int32 + Pnum::Ptr{Int32} + Pinv::Ptr{Int32} + Lip::Ptr{Int32} + Uip::Ptr{Int32} + Llen::Ptr{Int32} + Ulen::Ptr{Int32} + LUbx::Ptr{Ptr{Cvoid}} + LUsize::Ptr{Csize_t} + Udiag::Ptr{Cvoid} + Rs::Ptr{Cdouble} + worksize::Csize_t + Work::Ptr{Cvoid} + Xwork::Ptr{Cvoid} + Iwork::Ptr{Int32} + Offp::Ptr{Int32} + Offi::Ptr{Int32} + Offx::Ptr{Cvoid} + nzoff::Int32 + klu_numeric() = new() +end + +mutable struct klu_l_numeric + n::Int64 + nblocks::Int64 + lnz::Int64 + unz::Int64 + max_lnz_block::Int64 + max_unz_block::Int64 + Pnum::Ptr{Int64} + Pinv::Ptr{Int64} + Lip::Ptr{Int64} + Uip::Ptr{Int64} + Llen::Ptr{Int64} + Ulen::Ptr{Int64} + LUbx::Ptr{Ptr{Cvoid}} + LUsize::Ptr{Csize_t} + Udiag::Ptr{Cvoid} + Rs::Ptr{Cdouble} + worksize::Csize_t + Work::Ptr{Cvoid} + Xwork::Ptr{Cvoid} + Iwork::Ptr{Int64} + Offp::Ptr{Int64} + Offi::Ptr{Int64} + Offx::Ptr{Cvoid} + nzoff::Int64 + klu_l_numeric() = new() +end + +mutable struct klu_common_struct + tol::Cdouble + memgrow::Cdouble + initmem_amd::Cdouble + initmem::Cdouble + maxwork::Cdouble + btf::Cint + ordering::Cint + scale::Cint + user_order::Ptr{Cvoid} + user_data::Ptr{Cvoid} + halt_if_singular::Cint + status::Cint + nrealloc::Cint + structural_rank::Int32 + numerical_rank::Int32 + singular_col::Int32 + noffdiag::Int32 + flops::Cdouble + rcond::Cdouble + condest::Cdouble + rgrowth::Cdouble + work::Cdouble + memusage::Csize_t + mempeak::Csize_t + klu_common_struct() = new() +end + +const klu_common = klu_common_struct + +mutable struct klu_l_common_struct + tol::Cdouble + memgrow::Cdouble + initmem_amd::Cdouble + initmem::Cdouble + maxwork::Cdouble + btf::Cint + ordering::Cint + scale::Cint + user_order::Ptr{Cvoid} + user_data::Ptr{Cvoid} + halt_if_singular::Cint + status::Cint + nrealloc::Cint + structural_rank::Int64 + numerical_rank::Int64 + singular_col::Int64 + noffdiag::Int64 + flops::Cdouble + rcond::Cdouble + condest::Cdouble + rgrowth::Cdouble + work::Cdouble + memusage::Csize_t + mempeak::Csize_t + klu_l_common_struct() = new() +end + +const klu_l_common = klu_l_common_struct + +function klu_defaults(Common) + ccall((:klu_defaults, libklu), Cint, (Ptr{klu_common},), Common) +end + +function klu_l_defaults(Common) + ccall((:klu_l_defaults, libklu), Cint, (Ptr{klu_l_common},), Common) +end + +function klu_analyze(n, Ap, Ai, Common) + ccall((:klu_analyze, libklu), Ptr{klu_symbolic}, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{klu_common}), n, Ap, Ai, Common) +end + +function klu_l_analyze(arg1, arg2, arg3, Common) + ccall((:klu_l_analyze, libklu), Ptr{klu_l_symbolic}, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, Common) +end + +function klu_analyze_given(n, Ap, Ai, P, Q, Common) + ccall((:klu_analyze_given, libklu), Ptr{klu_symbolic}, (Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{Int32}, Ptr{klu_common}), n, Ap, Ai, P, Q, Common) +end + +function klu_l_analyze_given(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_l_analyze_given, libklu), Ptr{klu_l_symbolic}, (Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_factor(Ap, Ai, Ax, Symbolic, Common) + ccall((:klu_factor, libklu), Ptr{klu_numeric}, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Common) +end + +function klu_z_factor(Ap, Ai, Ax, Symbolic, Common) + ccall((:klu_z_factor, libklu), Ptr{klu_numeric}, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Common) +end + +function klu_l_factor(arg1, arg2, arg3, arg4, arg5) + ccall((:klu_l_factor, libklu), Ptr{klu_l_numeric}, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5) +end + +function klu_zl_factor(arg1, arg2, arg3, arg4, arg5) + ccall((:klu_zl_factor, libklu), Ptr{klu_l_numeric}, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5) +end + +function klu_solve(Symbolic, Numeric, ldim, nrhs, B, Common) + ccall((:klu_solve, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Int32, Int32, Ptr{Cdouble}, Ptr{klu_common}), Symbolic, Numeric, ldim, nrhs, B, Common) +end + +function klu_z_solve(Symbolic, Numeric, ldim, nrhs, B, Common) + ccall((:klu_z_solve, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Int32, Int32, Ptr{Cdouble}, Ptr{klu_common}), Symbolic, Numeric, ldim, nrhs, B, Common) +end + +function klu_l_solve(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_l_solve, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Int64, Int64, Ptr{Cdouble}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_zl_solve(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_zl_solve, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Int64, Int64, Ptr{Cdouble}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_tsolve(Symbolic, Numeric, ldim, nrhs, B, Common) + ccall((:klu_tsolve, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Int32, Int32, Ptr{Cdouble}, Ptr{klu_common}), Symbolic, Numeric, ldim, nrhs, B, Common) +end + +function klu_z_tsolve(Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) + ccall((:klu_z_tsolve, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Int32, Int32, Ptr{Cdouble}, Cint, Ptr{klu_common}), Symbolic, Numeric, ldim, nrhs, B, conj_solve, Common) +end + +function klu_l_tsolve(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_l_tsolve, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Int64, Int64, Ptr{Cdouble}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_zl_tsolve(arg1, arg2, arg3, arg4, arg5, arg6, arg7) + ccall((:klu_zl_tsolve, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Int64, Int64, Ptr{Cdouble}, Cint, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6, arg7) +end + +function klu_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) + ccall((:klu_refactor, libklu), Cint, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Numeric, Common) +end + +function klu_z_refactor(Ap, Ai, Ax, Symbolic, Numeric, Common) + ccall((:klu_z_refactor, libklu), Cint, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Numeric, Common) +end + +function klu_l_refactor(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_l_refactor, libklu), Cint, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_zl_refactor(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_zl_refactor, libklu), Cint, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_free_symbolic(Symbolic, Common) + ccall((:klu_free_symbolic, libklu), Cint, (Ptr{Ptr{klu_symbolic}}, Ptr{klu_common}), Symbolic, Common) +end + +function klu_l_free_symbolic(arg1, arg2) + ccall((:klu_l_free_symbolic, libklu), Cint, (Ptr{Ptr{klu_l_symbolic}}, Ptr{klu_l_common}), arg1, arg2) +end + +function klu_free_numeric(Numeric, Common) + ccall((:klu_free_numeric, libklu), Cint, (Ptr{Ptr{klu_numeric}}, Ptr{klu_common}), Numeric, Common) +end + +function klu_z_free_numeric(Numeric, Common) + ccall((:klu_z_free_numeric, libklu), Cint, (Ptr{Ptr{klu_numeric}}, Ptr{klu_common}), Numeric, Common) +end + +function klu_l_free_numeric(arg1, arg2) + ccall((:klu_l_free_numeric, libklu), Cint, (Ptr{Ptr{klu_l_numeric}}, Ptr{klu_l_common}), arg1, arg2) +end + +function klu_zl_free_numeric(arg1, arg2) + ccall((:klu_zl_free_numeric, libklu), Cint, (Ptr{Ptr{klu_l_numeric}}, Ptr{klu_l_common}), arg1, arg2) +end + +function klu_sort(Symbolic, Numeric, Common) + ccall((:klu_sort, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_z_sort(Symbolic, Numeric, Common) + ccall((:klu_z_sort, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_l_sort(arg1, arg2, arg3) + ccall((:klu_l_sort, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_zl_sort(arg1, arg2, arg3) + ccall((:klu_zl_sort, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_flops(Symbolic, Numeric, Common) + ccall((:klu_flops, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_z_flops(Symbolic, Numeric, Common) + ccall((:klu_z_flops, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_l_flops(arg1, arg2, arg3) + ccall((:klu_l_flops, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_zl_flops(arg1, arg2, arg3) + ccall((:klu_zl_flops, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) + ccall((:klu_rgrowth, libklu), Cint, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Numeric, Common) +end + +function klu_z_rgrowth(Ap, Ai, Ax, Symbolic, Numeric, Common) + ccall((:klu_z_rgrowth, libklu), Cint, (Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ai, Ax, Symbolic, Numeric, Common) +end + +function klu_l_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_l_rgrowth, libklu), Cint, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_zl_rgrowth(arg1, arg2, arg3, arg4, arg5, arg6) + ccall((:klu_zl_rgrowth, libklu), Cint, (Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6) +end + +function klu_condest(Ap, Ax, Symbolic, Numeric, Common) + ccall((:klu_condest, libklu), Cint, (Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ax, Symbolic, Numeric, Common) +end + +function klu_z_condest(Ap, Ax, Symbolic, Numeric, Common) + ccall((:klu_z_condest, libklu), Cint, (Ptr{Int32}, Ptr{Cdouble}, Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Ap, Ax, Symbolic, Numeric, Common) +end + +function klu_l_condest(arg1, arg2, arg3, arg4, arg5) + ccall((:klu_l_condest, libklu), Cint, (Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5) +end + +function klu_zl_condest(arg1, arg2, arg3, arg4, arg5) + ccall((:klu_zl_condest, libklu), Cint, (Ptr{Int64}, Ptr{Cdouble}, Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5) +end + +function klu_rcond(Symbolic, Numeric, Common) + ccall((:klu_rcond, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_z_rcond(Symbolic, Numeric, Common) + ccall((:klu_z_rcond, libklu), Cint, (Ptr{klu_symbolic}, Ptr{klu_numeric}, Ptr{klu_common}), Symbolic, Numeric, Common) +end + +function klu_l_rcond(arg1, arg2, arg3) + ccall((:klu_l_rcond, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_zl_rcond(arg1, arg2, arg3) + ccall((:klu_zl_rcond, libklu), Cint, (Ptr{klu_l_symbolic}, Ptr{klu_l_numeric}, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) + ccall((:klu_scale, libklu), Cint, (Cint, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int32}, Ptr{klu_common}), scale, n, Ap, Ai, Ax, Rs, W, Common) +end + +function klu_z_scale(scale, n, Ap, Ai, Ax, Rs, W, Common) + ccall((:klu_z_scale, libklu), Cint, (Cint, Int32, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int32}, Ptr{klu_common}), scale, n, Ap, Ai, Ax, Rs, W, Common) +end + +function klu_l_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) + ccall((:klu_l_scale, libklu), Cint, (Cint, Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) +end + +function klu_zl_scale(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) + ccall((:klu_zl_scale, libklu), Cint, (Cint, Int64, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) +end + +function klu_extract(Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) + ccall((:klu_extract, libklu), Cint, (Ptr{klu_numeric}, Ptr{klu_symbolic}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{klu_common}), Numeric, Symbolic, Lp, Li, Lx, Up, Ui, Ux, Fp, Fi, Fx, P, Q, Rs, R, Common) +end + +function klu_z_extract(Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) + ccall((:klu_z_extract, libklu), Cint, (Ptr{klu_numeric}, Ptr{klu_symbolic}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int32}, Ptr{Int32}, Ptr{Cdouble}, Ptr{Int32}, Ptr{klu_common}), Numeric, Symbolic, Lp, Li, Lx, Lz, Up, Ui, Ux, Uz, Fp, Fi, Fx, Fz, P, Q, Rs, R, Common) +end + +function klu_l_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) + ccall((:klu_l_extract, libklu), Cint, (Ptr{klu_l_numeric}, Ptr{klu_l_symbolic}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) +end + +function klu_zl_extract(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) + ccall((:klu_zl_extract, libklu), Cint, (Ptr{klu_l_numeric}, Ptr{klu_l_symbolic}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Int64}, Ptr{Int64}, Ptr{Cdouble}, Ptr{Int64}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) +end + +function klu_malloc(n, size, Common) + ccall((:klu_malloc, libklu), Ptr{Cvoid}, (Csize_t, Csize_t, Ptr{klu_common}), n, size, Common) +end + +function klu_free(p, n, size, Common) + ccall((:klu_free, libklu), Ptr{Cvoid}, (Ptr{Cvoid}, Csize_t, Csize_t, Ptr{klu_common}), p, n, size, Common) +end + +function klu_realloc(nnew, nold, size, p, Common) + ccall((:klu_realloc, libklu), Ptr{Cvoid}, (Csize_t, Csize_t, Csize_t, Ptr{Cvoid}, Ptr{klu_common}), nnew, nold, size, p, Common) +end + +function klu_l_malloc(arg1, arg2, arg3) + ccall((:klu_l_malloc, libklu), Ptr{Cvoid}, (Csize_t, Csize_t, Ptr{klu_l_common}), arg1, arg2, arg3) +end + +function klu_l_free(arg1, arg2, arg3, arg4) + ccall((:klu_l_free, libklu), Ptr{Cvoid}, (Ptr{Cvoid}, Csize_t, Csize_t, Ptr{klu_l_common}), arg1, arg2, arg3, arg4) +end + +function klu_l_realloc(arg1, arg2, arg3, arg4, arg5) + ccall((:klu_l_realloc, libklu), Ptr{Cvoid}, (Csize_t, Csize_t, Csize_t, Ptr{Cvoid}, Ptr{klu_l_common}), arg1, arg2, arg3, arg4, arg5) +end + +const SUITESPARSE_OPENMP_MAX_THREADS = 1 + +const SUITESPARSE_OPENMP_GET_NUM_THREADS = 1 + +const SUITESPARSE_OPENMP_GET_WTIME = 0 + +const SUITESPARSE_OPENMP_GET_THREAD_ID = 0 + +const SUITESPARSE_COMPILER_NVCC = 0 + +const SUITESPARSE_COMPILER_ICX = 0 + +const SUITESPARSE_COMPILER_ICC = 0 + +const SUITESPARSE_COMPILER_CLANG = 0 + +const SUITESPARSE_COMPILER_GCC = 0 + +const SUITESPARSE_COMPILER_MSC = 0 + +const SUITESPARSE_COMPILER_XLC = 0 + +const SUITESPARSE_DATE = "Oct 7, 2023" + +const SUITESPARSE_MAIN_VERSION = 7 + +const SUITESPARSE_SUB_VERSION = 2 + +const SUITESPARSE_SUBSUB_VERSION = 1 + +SUITESPARSE_VER_CODE(main, sub) = main * 1000 + sub + +const SUITESPARSE_VERSION = SUITESPARSE_VER_CODE(SUITESPARSE_MAIN_VERSION, SUITESPARSE_SUB_VERSION) + +const AMD_CONTROL = 5 + +const AMD_INFO = 20 + +const AMD_DENSE = 0 + +const AMD_AGGRESSIVE = 1 + +const AMD_DEFAULT_DENSE = 10.0 + +const AMD_DEFAULT_AGGRESSIVE = 1 + +const AMD_STATUS = 0 + +const AMD_N = 1 + +const AMD_NZ = 2 + +const AMD_SYMMETRY = 3 + +const AMD_NZDIAG = 4 + +const AMD_NZ_A_PLUS_AT = 5 + +const AMD_NDENSE = 6 + +const AMD_MEMORY = 7 + +const AMD_NCMPA = 8 + +const AMD_LNZ = 9 + +const AMD_NDIV = 10 + +const AMD_NMULTSUBS_LDL = 11 + +const AMD_NMULTSUBS_LU = 12 + +const AMD_DMAX = 13 + +const AMD_OK = 0 + +const AMD_OUT_OF_MEMORY = -1 + +const AMD_INVALID = -2 + +const AMD_OK_BUT_JUMBLED = 1 + +const AMD_DATE = "Sept 18, 2023" + +const AMD_MAIN_VERSION = 3 + +const AMD_SUB_VERSION = 2 + +const AMD_SUBSUB_VERSION = 1 + +AMD_VERSION_CODE(main, sub) = main * 1000 + sub + +const AMD_VERSION = AMD_VERSION_CODE(AMD_MAIN_VERSION, AMD_SUB_VERSION) + +const COLAMD_DATE = "Sept 18, 2023" + +const COLAMD_MAIN_VERSION = 3 + +const COLAMD_SUB_VERSION = 2 + +const COLAMD_SUBSUB_VERSION = 1 + +COLAMD_VERSION_CODE(main, sub) = main * 1000 + sub + +const COLAMD_VERSION = COLAMD_VERSION_CODE(COLAMD_MAIN_VERSION, COLAMD_SUB_VERSION) + +const COLAMD_KNOBS = 20 + +const COLAMD_STATS = 20 + +const COLAMD_DENSE_ROW = 0 + +const COLAMD_DENSE_COL = 1 + +const COLAMD_AGGRESSIVE = 2 + +const COLAMD_DEFRAG_COUNT = 2 + +const COLAMD_STATUS = 3 + +const COLAMD_INFO1 = 4 + +const COLAMD_INFO2 = 5 + +const COLAMD_INFO3 = 6 + +const COLAMD_OK = 0 + +const COLAMD_OK_BUT_JUMBLED = 1 + +const COLAMD_ERROR_A_not_present = -1 + +const COLAMD_ERROR_p_not_present = -2 + +const COLAMD_ERROR_nrow_negative = -3 + +const COLAMD_ERROR_ncol_negative = -4 + +const COLAMD_ERROR_nnz_negative = -5 + +const COLAMD_ERROR_p0_nonzero = -6 + +const COLAMD_ERROR_A_too_small = -7 + +const COLAMD_ERROR_col_length_negative = -8 + +const COLAMD_ERROR_row_index_out_of_bounds = -9 + +const COLAMD_ERROR_out_of_memory = -10 + +const COLAMD_ERROR_internal_error = -999 + +const BTF_DATE = "Sept 18, 2023" + +const BTF_MAIN_VERSION = 2 + +const BTF_SUB_VERSION = 2 + +const BTF_SUBSUB_VERSION = 1 + +BTF_VERSION_CODE(main, sub) = main * 1000 + sub + +const BTF_VERSION = BTF_VERSION_CODE(BTF_MAIN_VERSION, BTF_SUB_VERSION) + +const KLU_OK = 0 + +const KLU_SINGULAR = 1 + +const KLU_OUT_OF_MEMORY = -2 + +const KLU_INVALID = -3 + +const KLU_TOO_LARGE = -4 + +const KLU_DATE = "Sept 18, 2023" + +const KLU_MAIN_VERSION = 2 + +const KLU_SUB_VERSION = 2 + +const KLU_SUBSUB_VERSION = 1 + +KLU_VERSION_CODE(main, sub) = main * 1000 + sub + +const KLU_VERSION = KLU_VERSION_CODE(KLU_MAIN_VERSION, KLU_SUB_VERSION) +