Skip to content

Commit

Permalink
Update src/AlgebraicGeometry/ToricVarieties/NormalToricVarieties/bett…
Browse files Browse the repository at this point in the history
…i_numbers.jl
  • Loading branch information
lgoettgens committed Sep 20, 2024
1 parent d59187b commit 2648658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function betti_number(v::NormalToricVarietyType, i::Int)
end

# extract vector of currently-known Betti numbers (or create it if necessary)
betti_numbers = get_attribute!(v, :betti_number, [ZZ(-1) for _ in 1:(d+1)])::Vector{ZZRingElem}
betti_numbers = get_attribute!(() -> [ZZ(-1) for _ in 1:(d+1)], v, :betti_number)::Vector{ZZRingElem}

# compute the Betti number if needed
k = i >> 1 # i is even, so divide by two and use that as index
Expand Down

0 comments on commit 2648658

Please sign in to comment.