Skip to content

Commit 2f3dacb

Browse files
Modified print statements
1 parent f20c665 commit 2f3dacb

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

src/FinalReduction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function computeT(f, Basis, M, termorder, vars_reversed)
3434
if vars_reversed == true
3535
partials = reverse(partials)
3636
end
37-
println(partials)
37+
#println(partials)
3838

3939
T = zero_matrix(precisionring, 0, len)
4040

@@ -79,7 +79,7 @@ function computeT(f, Basis, M, termorder, vars_reversed)
7979
#T = vcat(matrix(precisionring,1,len,tmp),T)
8080
T = vcat(tmp, T)
8181
else
82-
println(monomials)
82+
#println(monomials)
8383
tmp = zero_matrix(precisionring, len_basis, len)
8484
for j in 1:len # indexing over monomials
8585
for k in 1:length(basis)

src/FindMonomialBasis.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ function compute_monomial_basis(f, m, R, PR, termorder)
133133

134134
rows = size(M)[1]
135135

136+
temp = size(M)
137+
println("Matrix of size $temp")
138+
136139
pivot_rows = pivot_columns(transpose(M))
137140
non_pivot_rows = setdiff([1:rows;], pivot_rows)
138141
return map((i) -> row_monomials[i], non_pivot_rows)
@@ -175,6 +178,9 @@ function pseudo_inverse_controlled(f, S, l, R, PR, termorder,vars_reversed)
175178
fLift = liftCoefficients(ZZ,PRZZ,f)
176179

177180
U = compute_controlled_matrix(fLift, l, S, ZZ, PRZZ, termorder,vars_reversed)
181+
182+
temp = size(U)
183+
println("Matrix of size $temp")
178184

179185
flag, B = is_invertible_with_inverse(matrix(R,[R(x) for x in Array(U)]), side=:right)
180186

src/StandardReduction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ INPUTS:
2121
* "termorder" -- the monomial ordering of vectors
2222
"""
2323
function monomial_change_basis(f, l, basis, termorder, vars_reversed)
24-
println(basis)
24+
#println(basis)
2525
p = characteristic(parent(f))
2626
n = nvars(parent(f)) - 1
2727
S = [i for i in 0:n]
@@ -47,7 +47,7 @@ function monomial_change_basis(f, l, basis, termorder, vars_reversed)
4747

4848
#change_basis_matrix_aug = hcat(change_basis_matrix,basis_columns);
4949
change_basis_matrix_aug = hcat(basis_columns,change_basis_matrix);
50-
println((rank(change_basis_matrix_aug), number_of_columns(change_basis_matrix_aug), number_of_rows(change_basis_matrix_aug)))
50+
#println((rank(change_basis_matrix_aug), number_of_columns(change_basis_matrix_aug), number_of_rows(change_basis_matrix_aug)))
5151
return change_basis_matrix_aug
5252
end
5353

src/ZetaFunction.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ INPUTS:
3434
"""
3535
function compute_frobenius_matrix(n, p, d, N_m, Reductions, T, Basis, termorder, verbose)
3636
verbose && println("Terms after controlled reduction: $Reductions")
37-
println(T)
3837
R = parent(T[1,1])
3938
frob_mat_temp = []
4039
denomArray = []
@@ -244,7 +243,6 @@ function zeta_function(f; verbose=false, givefrobmat=false, algorithm=:costachun
244243
#end
245244
#TODO: check which algorithm we're using
246245
Reductions = reducetransform(FBasis, N_m, S, fLift, pseudo_inverse_mat, p, termorder,algorithm,vars_reversed,fastevaluation,verbose=verbose)
247-
println(Reductions)
248246
if verbose
249247
for i in 1:length(Basis)
250248
basis_elt = Basis[i]
@@ -255,6 +253,7 @@ function zeta_function(f; verbose=false, givefrobmat=false, algorithm=:costachun
255253
ev = gen_exp_vec(n+1,n*d-n-1,termorder)
256254
verbose && println(convert_p_to_m([Reductions[1][1][1],Reductions[2][1][1]],ev))
257255
FM = compute_frobenius_matrix(n, p, d, N_m, Reductions, T, Basis, termorder, verbose)
256+
display(FM)
258257
verbose && println("The Frobenius matrix is $FM")
259258

260259
#reductions_verbose = convert_p_to_m([Reductions[1][1][1],Reductions[2][1][1]],ev)
@@ -330,12 +329,11 @@ include("Frobenius.jl")
330329
include("FinalReduction.jl")
331330
include("ZetaFunction.jl")
332331
verbose = false
333-
n = 2
334-
d = 3
335-
p = 7
332+
n = 5
333+
p = 13
336334
F = GF(p)
337-
R, (x,y,z) = polynomial_ring(F, ["x$i" for i in 0:n])
335+
R, (x1,x2,x3,x4,x5,x6) = polynomial_ring(F, ["x$i" for i in 0:n])
338336
339-
f = y^2*z - x^3 - x*z^2 - z^3
337+
f = x1^3 + x2^3 + x3^3 + x4^3 + x5^3 + x6^3
340338
@time DeRham.zeta_function(f)
341339
=#

0 commit comments

Comments
 (0)