Skip to content

Commit

Permalink
added fix for delta_sym with finite fields
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydellavecchia committed Jan 16, 2024
1 parent a4ec502 commit 398d1f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions experimental/AlgebraicShifting/src/AlgebraicShifting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ function delta_sym(F::Field, K::SimplicialComplex)

for b in mb
transformed_monomial = evaluate(b, Y * gens(R_K))
# this part will need to be adjusted for finite fields
non_zero_terms = filter(x -> !is_zero(R_K(x)), collect(terms(lift(transformed_monomial))))
# this can be moved outside loop at some point
non_zero_terms = filter(x -> !is_zero(R_K(x)),
collect(monomials(lift(transformed_monomial))))
generic_col = first.(coefficients.(non_zero_terms))
push!(A, generic_col)
end
Expand Down

0 comments on commit 398d1f9

Please sign in to comment.