Skip to content

Commit

Permalink
discard imprimitive vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrandhorst committed Sep 26, 2024
1 parent bf290b9 commit 20eff62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NumberTheory/vinberg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ function vinberg_algorithm(Q::ZZMatrix, upper_bound; v0=ZZ[0;]::ZZMatrix, root_l
@vprintln :Vinberg 1 "computing roots of squared length v^2=$(k) and v.v0 = $(n)"
possible_Vec = short_vectors_affine(Q, v0, QQ(n), k)
for v in possible_Vec
if v in roots
continue
if !isone(reduce(gcd, v))
# v must be primitive.
continue

Check warning on line 294 in src/NumberTheory/vinberg.jl

View check run for this annotation

Codecov / codecov/patch

src/NumberTheory/vinberg.jl#L294

Added line #L294 was not covered by tests
end
v = _rescale_primitive(v)
mul!(Qv, Q, transpose(v))
#Qv = Q*transpose(v)
if !(divisibilities isa Nothing)
Expand Down

0 comments on commit 20eff62

Please sign in to comment.