From 8ce122a7caae9cefcdc98aa5625f2cef576f77fe Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 21 Sep 2024 09:20:45 +0200 Subject: [PATCH] Remove four argument `mul!` for `ZZMatrix` (#1857) --- src/flint/fmpz_mat.jl | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/flint/fmpz_mat.jl b/src/flint/fmpz_mat.jl index d57a2a941..29f111607 100644 --- a/src/flint/fmpz_mat.jl +++ b/src/flint/fmpz_mat.jl @@ -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