Skip to content

Commit

Permalink
asds
Browse files Browse the repository at this point in the history
  • Loading branch information
thofma committed Apr 26, 2024
1 parent 9a10b27 commit 6b2755f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AlgAss/radical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function _lift!(A::zzModMatrix, B::fpMatrix, Mtemp)
end

function _lift!(A::zzModMatrix, B::FpMatrix, Mtemp::ZZMatrix)
ccall((:fmpz_mod_mat_get_fmpz_mat, libflint), Cvoid, (Ref{ZZMatrix}, Ref{FpMatrix}), Mtemp, B)
ccall((:fmpz_mod_mat_get_fmpz_mat, libflint), Cvoid, (Ref{ZZMatrix}, Ref{FpMatrix}, Ref{Nemo.fmpz_mod_ctx_struct}), Mtemp, B, base_ring(B).inv)
ccall((:fmpz_mat_get_nmod_mat, libflint), Cvoid, (Ref{zzModMatrix}, Ref{ZZMatrix}), A, Mtemp)
return A
end
8 changes: 4 additions & 4 deletions src/Misc/FiniteField.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

function _reduce(a::fqPolyRepFieldElem)
A = parent(a)
if a.length < 2*degree(A)
#if a.length < 2*degree(A)
ccall((:fq_nmod_reduce, libflint), Nothing, (Ref{fqPolyRepFieldElem}, Ref{fqPolyRepField}), a, A)
else
ccall((:nmod_poly_rem, libflint), Nothing, (Ref{fqPolyRepFieldElem}, Ref{fqPolyRepFieldElem}, Ref{Nothing}, Ref{Nothing}), a, a, pointer_from_objref(A)+6*sizeof(Int) + 2*sizeof(Ptr{Nothing}), pointer_from_objref(A)+sizeof(ZZRingElem))
end
#else
# ccall((:nmod_poly_rem, libflint), Nothing, (Ref{fqPolyRepFieldElem}, Ref{fqPolyRepFieldElem}, Ref{Nothing}, Ref{Nothing}), a, a, pointer_from_objref(A)+6*sizeof(Int) + 2*sizeof(Ptr{Nothing}), pointer_from_objref(A)+sizeof(ZZRingElem))
#end
end

function _reduce(a::FqPolyRepFieldElem)
Expand Down
2 changes: 1 addition & 1 deletion src/Misc/Matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ function invmod(M::ZZMatrix, d::ZZRingElem)
for i = 1:nrows(M)
S[i, i+nrows(M)] = 1
end
ccall((:fmpz_mod_mat_howell_form, libflint), Nothing, (Ref{ZZModMatrix}, ), S)
ccall((:fmpz_mod_mat_howell_form, libflint), Nothing, (Ref{ZZModMatrix}, Ref{Nemo.fmpz_mod_ctx_struct}), S, R.ninv)
iM = S[1:nrows(M), nrows(M)+1:ncols(S)]
#@assert iM*MR == identity_matrix(R, nrows(M))
return lift(iM)
Expand Down

0 comments on commit 6b2755f

Please sign in to comment.