mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-05 15:42:15 -07:00
get rid of __init__ function, no longer necessary
This commit is contained in:
parent
d6de77da40
commit
f06635b64b
1 changed files with 0 additions and 10 deletions
|
|
@ -13,16 +13,6 @@ include("primefactorization.jl")
|
|||
const Wigner3j = Dict{Tuple{UInt,UInt,UInt,Int,Int},Tuple{Rational{BigInt},Rational{BigInt}}}()
|
||||
const Wigner6j = Dict{NTuple{6,UInt},Tuple{Rational{BigInt},Rational{BigInt}}}()
|
||||
|
||||
function __init__()
|
||||
global bigone, bigprimetable, Wigner3j, Wigner6j
|
||||
bigone[] = big(1)
|
||||
bigprimetable[1][1] = big(2)
|
||||
bigprimetable[2][1] = big(3)
|
||||
bigprimetable[3][1] = big(5)
|
||||
Base.rehash!(Wigner3j)
|
||||
Base.rehash!(Wigner6j)
|
||||
end
|
||||
|
||||
# check integerness and correctness of (j,m) angular momentum
|
||||
ϵ(j, m) = (abs(m) <= j && ishalfinteger(j) && isinteger(j-m) && isinteger(j+m))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue