-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the C wrappers with the release of libHSL
- Loading branch information
1 parent
1334e06
commit ae6e64c
Showing
19 changed files
with
2,901 additions
and
3,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,174 +1,158 @@ | ||
function ma48_initialize_s(factors) | ||
@ccall libhsl.ma48_initialize_s(factors::Ptr{Ptr{Cvoid}})::Cvoid | ||
@ccall libhsl.ma48_initialize_s(factors::Ptr{Ptr{Cvoid}})::Cvoid | ||
end | ||
|
||
mutable struct ma48_control{T} | ||
f_arrays::Cint | ||
multiplier::T | ||
u::T | ||
switch_::T | ||
drop::T | ||
tolerance::T | ||
cgce::T | ||
lp::Cint | ||
wp::Cint | ||
mp::Cint | ||
ldiag::Cint | ||
btf::Cint | ||
struct_::Cint | ||
maxit::Cint | ||
factor_blocking::Cint | ||
solve_blas::Cint | ||
pivoting::Cint | ||
diagonal_pivoting::Cint | ||
fill_in::Cint | ||
switch_mode::Cint | ||
f_arrays::Cint | ||
multiplier::T | ||
u::T | ||
switch_::T | ||
drop::T | ||
tolerance::T | ||
cgce::T | ||
lp::Cint | ||
wp::Cint | ||
mp::Cint | ||
ldiag::Cint | ||
btf::Cint | ||
struct_::Cint | ||
maxit::Cint | ||
factor_blocking::Cint | ||
solve_blas::Cint | ||
pivoting::Cint | ||
diagonal_pivoting::Cint | ||
fill_in::Cint | ||
switch_mode::Cint | ||
end | ||
|
||
function ma48_default_control_s(control) | ||
@ccall libhsl.ma48_default_control_s(control::Ref{ma48_control{Float32}})::Cvoid | ||
@ccall libhsl.ma48_default_control_s(control::Ref{ma48_control{Float32}})::Cvoid | ||
end | ||
|
||
mutable struct ma48_ainfo{T} | ||
ops::T | ||
flag::Cint | ||
more::Cint | ||
lena_analyse::Clong | ||
lenj_analyse::Clong | ||
lena_factorize::Clong | ||
leni_factorize::Clong | ||
ncmpa::Cint | ||
rank::Cint | ||
drop::Clong | ||
struc_rank::Cint | ||
oor::Clong | ||
dup::Clong | ||
stat::Cint | ||
lblock::Cint | ||
sblock::Cint | ||
tblock::Clong | ||
ops::T | ||
flag::Cint | ||
more::Cint | ||
lena_analyse::Clong | ||
lenj_analyse::Clong | ||
lena_factorize::Clong | ||
leni_factorize::Clong | ||
ncmpa::Cint | ||
rank::Cint | ||
drop::Clong | ||
struc_rank::Cint | ||
oor::Clong | ||
dup::Clong | ||
stat::Cint | ||
lblock::Cint | ||
sblock::Cint | ||
tblock::Clong | ||
end | ||
|
||
mutable struct ma48_finfo{T} | ||
ops::T | ||
flag::Cint | ||
more::Cint | ||
size_factor::Clong | ||
lena_factorize::Clong | ||
leni_factorize::Clong | ||
drop::Clong | ||
rank::Cint | ||
stat::Cint | ||
end | ||
|
||
function ma48_analyse_s(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, | ||
endcol) | ||
@ccall libhsl.ma48_analyse_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, | ||
col::Ptr{Cint}, val::Ptr{Float32}, | ||
factors::Ptr{Cvoid}, control::Ref{ma48_control{Float32}}, | ||
ainfo::Ref{ma48_ainfo{Float32}}, finfo::Ref{ma48_finfo{Float32}}, | ||
perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid | ||
ops::T | ||
flag::Cint | ||
more::Cint | ||
size_factor::Clong | ||
lena_factorize::Clong | ||
leni_factorize::Clong | ||
drop::Clong | ||
rank::Cint | ||
stat::Cint | ||
end | ||
|
||
function ma48_analyse_s(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, endcol) | ||
@ccall libhsl.ma48_analyse_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float32}, factors::Ptr{Cvoid}, | ||
control::Ref{ma48_control{Float32}}, ainfo::Ref{ma48_ainfo{Float32}}, | ||
finfo::Ref{ma48_finfo{Float32}}, perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid | ||
end | ||
|
||
function ma48_get_perm_s(m, n, factors, perm, control) | ||
@ccall libhsl.ma48_get_perm_s(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, | ||
control::Ref{ma48_control{Float32}})::Cvoid | ||
@ccall libhsl.ma48_get_perm_s(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, | ||
control::Ref{ma48_control{Float32}})::Cvoid | ||
end | ||
|
||
function ma48_factorize_s(m, n, ne, row, col, val, factors, control, finfo, fast, partial) | ||
@ccall libhsl.ma48_factorize_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, | ||
col::Ptr{Cint}, val::Ptr{Float32}, | ||
factors::Ptr{Cvoid}, control::Ref{ma48_control{Float32}}, | ||
finfo::Ref{ma48_finfo{Float32}}, fast::Cint, | ||
partial::Cint)::Cvoid | ||
@ccall libhsl.ma48_factorize_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float32}, factors::Ptr{Cvoid}, | ||
control::Ref{ma48_control{Float32}}, finfo::Ref{ma48_finfo{Float32}}, fast::Cint, | ||
partial::Cint)::Cvoid | ||
end | ||
|
||
mutable struct ma48_sinfo | ||
flag::Cint | ||
more::Cint | ||
stat::Cint | ||
flag::Cint | ||
more::Cint | ||
stat::Cint | ||
end | ||
|
||
function ma48_solve_s(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, | ||
resid, error) | ||
@ccall libhsl.ma48_solve_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float32}, factors::Ptr{Cvoid}, | ||
rhs::Ptr{Float32}, x::Ptr{Float32}, | ||
control::Ref{ma48_control{Float32}}, sinfo::Ref{ma48_sinfo}, | ||
trans::Cint, resid::Ptr{Float32}, | ||
error::Ptr{Float32})::Cvoid | ||
function ma48_solve_s(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, resid, error) | ||
@ccall libhsl.ma48_solve_s(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float32}, factors::Ptr{Cvoid}, | ||
rhs::Ptr{Float32}, x::Ptr{Float32}, | ||
control::Ref{ma48_control{Float32}}, sinfo::Ref{ma48_sinfo}, trans::Cint, | ||
resid::Ptr{Float32}, error::Ptr{Float32})::Cvoid | ||
end | ||
|
||
function ma48_finalize_s(factors, control) | ||
@ccall libhsl.ma48_finalize_s(factors::Ptr{Ptr{Cvoid}}, | ||
control::Ref{ma48_control{Float32}})::Cint | ||
@ccall libhsl.ma48_finalize_s(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma48_control{Float32}})::Cint | ||
end | ||
|
||
function ma48_special_rows_and_cols_s(factors, rank, rows, cols, control) | ||
@ccall libhsl.ma48_special_rows_and_cols_s(factors::Ptr{Cvoid}, rank::Ptr{Cint}, | ||
rows::Ptr{Cint}, cols::Ptr{Cint}, | ||
control::Ref{ma48_control{Float32}})::Cint | ||
@ccall libhsl.ma48_special_rows_and_cols_s(factors::Ptr{Cvoid}, rank::Ptr{Cint}, rows::Ptr{Cint}, | ||
cols::Ptr{Cint}, control::Ref{ma48_control{Float32}})::Cint | ||
end | ||
|
||
function ma48_determinant_s(factors, sgndet, logdet, control) | ||
@ccall libhsl.ma48_determinant_s(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, | ||
logdet::Ptr{Float32}, | ||
control::Ref{ma48_control{Float32}})::Cint | ||
@ccall libhsl.ma48_determinant_s(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, | ||
logdet::Ptr{Float32}, control::Ref{ma48_control{Float32}})::Cint | ||
end | ||
|
||
function ma48_initialize_d(factors) | ||
@ccall libhsl.ma48_initialize_d(factors::Ptr{Ptr{Cvoid}})::Cvoid | ||
@ccall libhsl.ma48_initialize_d(factors::Ptr{Ptr{Cvoid}})::Cvoid | ||
end | ||
|
||
function ma48_default_control_d(control) | ||
@ccall libhsl.ma48_default_control_d(control::Ref{ma48_control{Float64}})::Cvoid | ||
@ccall libhsl.ma48_default_control_d(control::Ref{ma48_control{Float64}})::Cvoid | ||
end | ||
|
||
function ma48_analyse_d(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, | ||
endcol) | ||
@ccall libhsl.ma48_analyse_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, | ||
col::Ptr{Cint}, val::Ptr{Float64}, | ||
factors::Ptr{Cvoid}, control::Ref{ma48_control{Float64}}, | ||
ainfo::Ref{ma48_ainfo{Float64}}, finfo::Ref{ma48_finfo{Float64}}, | ||
perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid | ||
function ma48_analyse_d(m, n, ne, row, col, val, factors, control, ainfo, finfo, perm, endcol) | ||
@ccall libhsl.ma48_analyse_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float64}, factors::Ptr{Cvoid}, | ||
control::Ref{ma48_control{Float64}}, ainfo::Ref{ma48_ainfo{Float64}}, | ||
finfo::Ref{ma48_finfo{Float64}}, perm::Ptr{Cint}, endcol::Ptr{Cint})::Cvoid | ||
end | ||
|
||
function ma48_get_perm_d(m, n, factors, perm, control) | ||
@ccall libhsl.ma48_get_perm_d(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, | ||
control::Ref{ma48_control{Float64}})::Cvoid | ||
@ccall libhsl.ma48_get_perm_d(m::Cint, n::Cint, factors::Ptr{Cvoid}, perm::Ptr{Cint}, | ||
control::Ref{ma48_control{Float64}})::Cvoid | ||
end | ||
|
||
function ma48_factorize_d(m, n, ne, row, col, val, factors, control, finfo, fast, partial) | ||
@ccall libhsl.ma48_factorize_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, | ||
col::Ptr{Cint}, val::Ptr{Float64}, | ||
factors::Ptr{Cvoid}, control::Ref{ma48_control{Float64}}, | ||
finfo::Ref{ma48_finfo{Float64}}, fast::Cint, | ||
partial::Cint)::Cvoid | ||
@ccall libhsl.ma48_factorize_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float64}, factors::Ptr{Cvoid}, | ||
control::Ref{ma48_control{Float64}}, finfo::Ref{ma48_finfo{Float64}}, fast::Cint, | ||
partial::Cint)::Cvoid | ||
end | ||
|
||
function ma48_solve_d(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, | ||
resid, error) | ||
@ccall libhsl.ma48_solve_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float64}, factors::Ptr{Cvoid}, | ||
rhs::Ptr{Float64}, x::Ptr{Float64}, | ||
control::Ref{ma48_control{Float64}}, sinfo::Ref{ma48_sinfo}, | ||
trans::Cint, resid::Ptr{Float64}, | ||
error::Ptr{Float64})::Cvoid | ||
function ma48_solve_d(m, n, ne, row, col, val, factors, rhs, x, control, sinfo, trans, resid, error) | ||
@ccall libhsl.ma48_solve_d(m::Cint, n::Cint, ne::Clong, row::Ptr{Cint}, col::Ptr{Cint}, | ||
val::Ptr{Float64}, factors::Ptr{Cvoid}, | ||
rhs::Ptr{Float64}, x::Ptr{Float64}, | ||
control::Ref{ma48_control{Float64}}, sinfo::Ref{ma48_sinfo}, trans::Cint, | ||
resid::Ptr{Float64}, error::Ptr{Float64})::Cvoid | ||
end | ||
|
||
function ma48_finalize_d(factors, control) | ||
@ccall libhsl.ma48_finalize_d(factors::Ptr{Ptr{Cvoid}}, | ||
control::Ref{ma48_control{Float64}})::Cint | ||
@ccall libhsl.ma48_finalize_d(factors::Ptr{Ptr{Cvoid}}, control::Ref{ma48_control{Float64}})::Cint | ||
end | ||
|
||
function ma48_special_rows_and_cols_d(factors, rank, rows, cols, control) | ||
@ccall libhsl.ma48_special_rows_and_cols_d(factors::Ptr{Cvoid}, rank::Ptr{Cint}, | ||
rows::Ptr{Cint}, cols::Ptr{Cint}, | ||
control::Ref{ma48_control{Float64}})::Cint | ||
@ccall libhsl.ma48_special_rows_and_cols_d(factors::Ptr{Cvoid}, rank::Ptr{Cint}, rows::Ptr{Cint}, | ||
cols::Ptr{Cint}, control::Ref{ma48_control{Float64}})::Cint | ||
end | ||
|
||
function ma48_determinant_d(factors, sgndet, logdet, control) | ||
@ccall libhsl.ma48_determinant_d(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, | ||
logdet::Ptr{Float64}, | ||
control::Ref{ma48_control{Float64}})::Cint | ||
@ccall libhsl.ma48_determinant_d(factors::Ptr{Cvoid}, sgndet::Ptr{Cint}, | ||
logdet::Ptr{Float64}, control::Ref{ma48_control{Float64}})::Cint | ||
end |
Oops, something went wrong.