Skip to content

Commit

Permalink
Add generic wrappers for hsl_subset
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Dec 24, 2024
1 parent 9ccf5c3 commit 486f1a9
Show file tree
Hide file tree
Showing 188 changed files with 9,835 additions and 4,360 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ deps/src
deps/build.log
Manifest.toml
docs/Manifest.toml
gen/symbols.txt
gen/symbols_64.txt
gen/symbols_libhsl.txt
gen/symbols_libhsl_subset.txt
gen/symbols_libhsl_subset_64.txt
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ HSL_jll = "017b0a0e-03f4-516a-9b91-836bbd1904dd"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2"
Quadmath = "be4d8f0f-7fa4-5f49-b795-2f01399ab2dd"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
OpenBLAS32_jll = "0.3.9"
Quadmath = "0.5.10"
julia = "^1.6.0"

[extras]
Expand Down
244 changes: 156 additions & 88 deletions gen/analyzer.jl

Large diffs are not rendered by default.

63 changes: 0 additions & 63 deletions src/Fortran/fa01.jl

This file was deleted.

63 changes: 0 additions & 63 deletions src/Fortran/fa04.jl

This file was deleted.

79 changes: 0 additions & 79 deletions src/Fortran/fa14.jl

This file was deleted.

15 changes: 0 additions & 15 deletions src/Fortran/fd15.jl

This file was deleted.

95 changes: 95 additions & 0 deletions src/Fortran/hsl_subset/fa01.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
function fa01br(::Type{Float32}, ::Type{Int32}, max, nrand)
@ccall libhsl_subset.fa01b_(max::Ref{Int32}, nrand::Ref{Int32})::Cvoid
end

function fa01br(::Type{Float64}, ::Type{Int32}, max, nrand)
@ccall libhsl_subset.fa01bd_(max::Ref{Int32}, nrand::Ref{Int32})::Cvoid
end

function fa01br(::Type{Float128}, ::Type{Int32}, max, nrand)
@ccall libhsl_subset.fa01bq_(max::Ref{Int32}, nrand::Ref{Int32})::Cvoid
end

function fa01br(::Type{Float32}, ::Type{Int64}, max, nrand)
@ccall libhsl_subset_64.fa01b_64_(max::Ref{Int64}, nrand::Ref{Int64})::Cvoid
end

function fa01br(::Type{Float64}, ::Type{Int64}, max, nrand)
@ccall libhsl_subset_64.fa01bd_64_(max::Ref{Int64}, nrand::Ref{Int64})::Cvoid
end

function fa01br(::Type{Float128}, ::Type{Int64}, max, nrand)
@ccall libhsl_subset_64.fa01bq_64_(max::Ref{Int64}, nrand::Ref{Int64})::Cvoid
end

function fa01cr(::Type{Float32}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01c_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01cr(::Type{Float64}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01cd_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01cr(::Type{Float128}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01cq_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01cr(::Type{Float32}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01c_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01cr(::Type{Float64}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01cd_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01cr(::Type{Float128}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01cq_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01dr(::Type{Float32}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01d_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01dr(::Type{Float64}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01dd_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01dr(::Type{Float128}, ::Type{Int32}, il, ir)
@ccall libhsl_subset.fa01dq_(il::Ref{Int32}, ir::Ref{Int32})::Cvoid
end

function fa01dr(::Type{Float32}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01d_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01dr(::Type{Float64}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01dd_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01dr(::Type{Float128}, ::Type{Int64}, il, ir)
@ccall libhsl_subset_64.fa01dq_64_(il::Ref{Int64}, ir::Ref{Int64})::Cvoid
end

function fa01ar(::Type{Float32}, ::Type{Int32}, i)
@ccall libhsl_subset.fa01a_(i::Ref{Int32})::Float32
end

function fa01ar(::Type{Float64}, ::Type{Int32}, i)
@ccall libhsl_subset.fa01ad_(i::Ref{Int32})::Float64
end

function fa01ar(::Type{Float128}, ::Type{Int32}, i)
@ccall libhsl_subset.fa01aq_(i::Ref{Int32})::Float128
end

function fa01ar(::Type{Float32}, ::Type{Int64}, i)
@ccall libhsl_subset_64.fa01a_64_(i::Ref{Int64})::Float32
end

function fa01ar(::Type{Float64}, ::Type{Int64}, i)
@ccall libhsl_subset_64.fa01ad_64_(i::Ref{Int64})::Float64
end

function fa01ar(::Type{Float128}, ::Type{Int64}, i)
@ccall libhsl_subset_64.fa01aq_64_(i::Ref{Int64})::Float128
end
Loading

0 comments on commit 486f1a9

Please sign in to comment.