Skip to content

Commit

Permalink
Adjust renaming artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Feb 22, 2023
1 parent 18a3dc8 commit 46e6959
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GrpAb/Elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function reduce_mod_snf!(a::ZZMatrix, v::Vector{ZZRingElem})
if !iszero(d)
for j = 1:nrows(a)
t = ccall((:fmpz_mat_entry, libflint), Ptr{ZZRingElem}, (Ref{ZZMatrix}, Int, Int), a, j - 1, i - 1)
ccall((:ZZModRingElem, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), t, t, d)
ccall((:fmpz_mod, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), t, t, d)
end
#a[1, i] = mod(a[1, i], A.snf[i])
end
Expand Down
2 changes: 1 addition & 1 deletion src/Map/NfOrd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ end

function mul!(z::Nemo.FpFieldElem, x::Nemo.FpFieldElem, y::ZZRingElem)
R = parent(x)
ccall((:ZZModRingElem, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}),
ccall((:fmpz_mod, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}),
z.data, y, R.n)

ccall((:fmpz_mod_mul, libflint), Nothing,
Expand Down
2 changes: 1 addition & 1 deletion src/Misc/CRT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Nemo.crt, Nemo.zero, Nemo.iszero, Nemo.isone, Nemo.sub!
export crt_env, crt, crt_inv, modular_init, crt_signed

@inline function rem!(a::ZZRingElem, b::ZZRingElem, c::ZZRingElem)
ccall((:ZZModRingElem, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}), a, b, c)
ccall((:fmpz_mod, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}), a, b, c)
return a
end

Expand Down
2 changes: 1 addition & 1 deletion src/Misc/Integer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ one(::Type{QQFieldElem}) = QQFieldElem(1)


function mod!(z::ZZRingElem, x::ZZRingElem, y::ZZRingElem)
ccall((:ZZModRingElem, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}), z, x, y)
ccall((:fmpz_mod, libflint), Nothing, (Ref{ZZRingElem}, Ref{ZZRingElem}, Ref{ZZRingElem}), z, x, y)
return z
end

Expand Down
4 changes: 2 additions & 2 deletions src/Misc/Matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ function mod!(M::ZZMatrix, p::ZZRingElem)
for i=1:nrows(M)
for j=1:ncols(M)
z = ccall((:fmpz_mat_entry, libflint), Ptr{ZZRingElem}, (Ref{ZZMatrix}, Int, Int), M, i - 1, j - 1)
ccall((:ZZModRingElem, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), z, z, p)
ccall((:fmpz_mod, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), z, z, p)
end
end
end
Expand Down Expand Up @@ -2398,7 +2398,7 @@ function map_entries(R::Nemo.ZZModRing, M::ZZMatrix)
for j = 1:ncols(M)
m = ccall((:fmpz_mat_entry, libflint), Ptr{ZZRingElem}, (Ref{ZZMatrix}, Int, Int), M, i - 1, j - 1)
n = ccall((:fmpz_mod_mat_entry, libflint), Ptr{ZZRingElem}, (Ref{ZZModMatrix}, Int, Int), N, i - 1 , j - 1)
ccall((:ZZModRingElem, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), n, m, R.n)
ccall((:fmpz_mod, libflint), Nothing, (Ptr{ZZRingElem}, Ptr{ZZRingElem}, Ref{ZZRingElem}), n, m, R.n)
end
end
end
Expand Down

0 comments on commit 46e6959

Please sign in to comment.