Skip to content

Commit

Permalink
Remove four argument mul! for ZZMatrix (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin authored Sep 21, 2024
1 parent 2ead0d2 commit 8ce122a
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/flint/fmpz_mat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1824,16 +1824,9 @@ function sub!(z::ZZMatrix, x::ZZMatrix, y::ZZMatrix)
return z
end

function mul!(z::ZZMatrix, x::ZZMatrix, y::ZZMatrix, fl::Bool = false)
if fl
n = similar(z)
ccall((:fmpz_mat_mul, libflint), Nothing,
(Ref{ZZMatrix}, Ref{ZZMatrix}, Ref{ZZMatrix}), n, x, y)
add!(z, z, n)
else
ccall((:fmpz_mat_mul, libflint), Nothing,
(Ref{ZZMatrix}, Ref{ZZMatrix}, Ref{ZZMatrix}), z, x, y)
end
function mul!(z::ZZMatrix, x::ZZMatrix, y::ZZMatrix)
ccall((:fmpz_mat_mul, libflint), Nothing,
(Ref{ZZMatrix}, Ref{ZZMatrix}, Ref{ZZMatrix}), z, x, y)
return z
end

Expand Down

0 comments on commit 8ce122a

Please sign in to comment.