Skip to content

Commit

Permalink
fix (#3847)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrandhorst authored Jun 12, 2024
1 parent 91f4c1d commit 7e5d14d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AlgebraicGeometry/Surfaces/K3Auto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,8 @@ function find_section(L::ZZLat, f::QQMatrix)
k = nrows(K)
Kl = integer_lattice(gram=K*transpose(K))
# project ss to K
sK = solve(change_base_ring(QQ,K*transpose(K)),change_base_ring(QQ,K*transpose(ss)))
sK = solve(change_base_ring(QQ,K*transpose(K)),change_base_ring(QQ,K*transpose(ss)); side=:right
)
a = QQ(1)
cv = []
while true
Expand Down
8 changes: 8 additions & 0 deletions test/AlgebraicGeometry/Surfaces/K3Auto.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,11 @@ end
=#
end

@testset "find_section" begin
L = integer_lattice(gram=ZZ[0 2 3; 2 -2 1; 3 1 -2])
f = QQ[1 0 0;]
s = Oscar.find_section(L,f)
V = ambient_space(L)
@test inner_product(V,f,s)==1
@test inner_product(V,s,s)==-2
end

0 comments on commit 7e5d14d

Please sign in to comment.