Skip to content

Commit 15f9c7a

Browse files
Added some print statements
1 parent 68f5a08 commit 15f9c7a

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/ControlledReduction.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ function reducechain_costachunks(u,g,m,S,f,pseudoInverseMat,p,Ruvs,termorder,var
289289
if vars_reversed == false
290290
I = reverse(I) # parity issue due to Costa's code being reverse from ours
291291
end
292-
#println("Expanded I: $I")
292+
println("Expanded I: $I")
293293

294294
gMat = g
295+
println(gMat)
295296
#chain = 0
296297
I_edgar = [x//7 for x in I]
297298
#verbose && println("This is I: $I_edgar")
@@ -303,6 +304,7 @@ function reducechain_costachunks(u,g,m,S,f,pseudoInverseMat,p,Ruvs,termorder,var
303304
else
304305
V = chooseV(Array{Int}(divexact.(I,p)),d)
305306
end
307+
println("V: $V")
306308
# verbose && println("LOOK! I=$I, V = $V")
307309

308310

@@ -337,6 +339,7 @@ function reducechain_costachunks(u,g,m,S,f,pseudoInverseMat,p,Ruvs,termorder,var
337339
#verbose && println("After step $i: $gMat")
338340

339341
i = i+1
342+
println(gMat)
340343
end
341344
end
342345
# TODO: test how much of a difference the fast evaluation actually makes
@@ -352,6 +355,7 @@ function reducechain_costachunks(u,g,m,S,f,pseudoInverseMat,p,Ruvs,termorder,var
352355
else
353356
y = tweak(J - i*V,d*n-n) - tweak(J - (i+1)*V,d*n-n)
354357
end
358+
println("V: $y")
355359
#verbose && println("Getting y direction reduction matrix for V = $(y)")
356360
# there's some sort of parity issue between our code and Costa's
357361
#A,B = computeRPoly_LAOneVar(y,rev_tweak(J - (i+1)*V,d*n-n) - y,S,n,d,f,pseudoInverseMat,R,PR,termorder)
@@ -364,6 +368,7 @@ function reducechain_costachunks(u,g,m,S,f,pseudoInverseMat,p,Ruvs,termorder,var
364368
end
365369

366370
gMat = (A+B)*gMat
371+
println(gMat)
367372
#verbose && println("After step $(i+1): $gMat")
368373

369374
i = i+1

src/ZetaFunction.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,12 @@ include("Frobenius.jl")
329329
include("FinalReduction.jl")
330330
include("ZetaFunction.jl")
331331
verbose = false
332-
n = 3
333-
d = 4
332+
n = 2
333+
d = 3
334334
p = 7
335335
F = GF(p)
336-
R, (x,y,z,w) = polynomial_ring(F, ["x$i" for i in 0:n])
336+
R, (x,y,z) = polynomial_ring(F, ["x$i" for i in 0:n])
337337
338-
f = x^4 + y^4 + z^4 + w^4
339-
@time DeRham.zeta_function(f)
338+
f = y^2*z - x^3 - x*z^2 - z^3
339+
@time DeRham.zeta_function(f,vars_reversed=true)
340340
=#

0 commit comments

Comments
 (0)