Skip to content

Commit 410c875

Browse files
2 parents a96bf34 + 17011a8 commit 410c875

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name = "DeRham"
22
uuid = "0ea6bb9e-09b2-4dc0-b975-f97753fde228"
3+
version = "0.1.0"
34

45
[deps]
56
BitIntegers = "c3b6d118-76ef-56ca-8cc7-ebb389d030a1"

src/ControlledReduction.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ function my_addmul!(A::zzModMatrix, B::zzModMatrix, C::UInt, D::zzModMatrix)
6464
end
6565

6666
function my_mul!(A::zzModMatrix, B::zzModMatrix, c)
67-
c = UInt(c)
67+
p = characteristic(base_ring(parent(A)))
68+
ui(i) = 0 i ? UInt(i) : UInt(i + p)
69+
c = ui(c)
6870
@ccall Oscar.Nemo.libflint.nmod_mat_scalar_mul(A::Ref{zzModMatrix},
6971
B::Ref{zzModMatrix},
7072
c::UInt)::Nothing
@@ -1096,6 +1098,8 @@ function precomputeRuvs(S,f,pseudoInverseMat,Ruvs,explookup,params)
10961098
end
10971099

10981100
function computeRuv(V,S,f,pseudoInverseMat,Ruvs,explookup,params)
1101+
vars_reversed = params.vars_reversed
1102+
termorder = params.termorder
10991103
n = nvars(parent(f)) - 1
11001104
d = total_degree(f)
11011105
R = coefficient_ring(parent(f))

0 commit comments

Comments
 (0)