Skip to content

Commit 5ab34f9

Browse files
committed
minor cleanup
1 parent 27df99b commit 5ab34f9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/irreps/anirrep.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,17 @@ function dim(a::ANIrrep{N}) where {N}
133133
end
134134

135135
function Nsymbol(a::ANIrrep{N}, b::ANIrrep{N}, c::ANIrrep{N}) where {N}
136-
N < 4 && return (c.n == (a.n + b.n) % _nirreps(N)) ? 1 : 0
136+
N < 4 && return Int(c.n == (a.n + b.n) % _nirreps(N))
137137
# N = 4
138-
u, u′, u′′, three = ANIrrep{4}(0), ANIrrep{4}(1), ANIrrep{4}(2), ANIrrep{4}(3)
139-
return if a == three
140-
if b == three # 3 x 3
138+
return if a.n == 3
139+
if b.n == 3 # 3 x 3
141140
return 1 + (dim(c) == 3)
142141
else # 3 x 1D
143-
return c == three ? 1 : 0
142+
return c.n == 3 ? 1 : 0
144143
end
145144
else
146-
if b == three # 1D x 3
147-
return c == three ? 1 : 0
145+
if b.n == 3 # 1D x 3
146+
return c.n == 3 ? 1 : 0
148147
else # 1D x 1D
149148
return c.n == (a.n + b.n) % 3 ? 1 : 0
150149
end
@@ -161,7 +160,7 @@ function Fsymbol(a::I, b::I, c::I, d::I, e::I, f::I) where {N, I <: ANIrrep{N}}
161160
N < 4 && return T(Nabe * Necd * Nbcf * Nafd)
162161

163162
Nabe > 0 && Necd > 0 && Nbcf > 0 && Nafd > 0 ||
164-
return zeros(sectorscalartype(I), Nabe, Necd, Nbcf, Nafd)
163+
return zeros(T, Nabe, Necd, Nbcf, Nafd)
165164

166165
# fallback through fusiontensor for A4Irrep
167166
A = fusiontensor(a, b, e)

0 commit comments

Comments
 (0)