Skip to content

Commit

Permalink
Don't ccall arb_mat_solve_lu_precomp
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Oct 23, 2024
1 parent 5d18487 commit c05ecf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/arb/RealMat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,7 @@ function Solve._can_solve_internal_no_check(::Solve.LUTrait, C::Solve.SolveCtx{R
end

x = similar(b, ncols(C), ncols(b))
ccall((:arb_mat_solve_lu_precomp, libflint), Nothing,
(Ref{RealMatrix}, Ptr{Int}, Ref{RealMatrix}, Ref{RealMatrix}, Int),
x, inv(p).d .- 1, LU, b, precision(Balls))
_solve_lu_precomp!(x, p, LU, b)

if side === :left
x = transpose(x)
Expand Down
4 changes: 1 addition & 3 deletions src/arb/arb_mat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -611,9 +611,7 @@ function Solve._can_solve_internal_no_check(::Solve.LUTrait, C::Solve.SolveCtx{A
end

x = similar(b, ncols(C), ncols(b))
ccall((:arb_mat_solve_lu_precomp, libflint), Nothing,
(Ref{ArbMatrix}, Ptr{Int}, Ref{ArbMatrix}, Ref{ArbMatrix}, Int),
x, inv(p).d .- 1, LU, b, precision(base_ring(LU)))
_solve_lu_precomp!(x, p, LU, b)

if side === :left
x = transpose(x)
Expand Down

0 comments on commit c05ecf2

Please sign in to comment.