Skip to content

Commit

Permalink
Update lookup table for binomial coefficients in TDMs.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
arnab82 committed Jan 27, 2024
1 parent 6a570ab commit 595a740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FCI/TDMs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ function compute_creation(no::Integer, bra_na, bra_nb, ket_na, ket_nb, bra_v::Ma
_binomial = Array{Int,2}(undef,no+1,no+1)
for i in 0:no
for j in i:no
if binomial(j,i)>1E12
break
end
_binomial[j+1,i+1] = binomial(j,i)
end
end
Expand Down

0 comments on commit 595a740

Please sign in to comment.