@@ -135,7 +135,7 @@ Base.conj(c::U1Irrep) = U1Irrep(-c.charge)
135
135
⊗ (c1:: U1Irrep , c2:: U1Irrep ) = (U1Irrep (c1. charge + c2. charge),)
136
136
137
137
Base. IteratorSize (:: Type{SectorValues{U1Irrep}} ) = IsInfinite ()
138
- function Base. iterate (:: SectorValues{U1Irrep} , i= 0 )
138
+ function Base. iterate (:: SectorValues{U1Irrep} , i:: Int = 0 )
139
139
return i <= 0 ? (U1Irrep (half (i)), (- i + 1 )) : (U1Irrep (half (i)), - i)
140
140
end
141
141
function Base. getindex (:: SectorValues{U1Irrep} , i:: Int )
@@ -188,7 +188,7 @@ Base.conj(s::SU2Irrep) = s
188
188
⊗ (s1:: SU2Irrep , s2:: SU2Irrep ) = SectorSet {SU2Irrep} (abs (s1. j - s2. j): (s1. j + s2. j))
189
189
190
190
Base. IteratorSize (:: Type{SectorValues{SU2Irrep}} ) = IsInfinite ()
191
- Base. iterate (:: SectorValues{SU2Irrep} , i= 0 ) = (SU2Irrep (half (i)), i + 1 )
191
+ Base. iterate (:: SectorValues{SU2Irrep} , i:: Int = 0 ) = (SU2Irrep (half (i)), i + 1 )
192
192
function Base. getindex (:: SectorValues{SU2Irrep} , i:: Int )
193
193
return 1 <= i ? SU2Irrep (half (i - 1 )) : throw (BoundsError (values (SU2Irrep), i))
194
194
end
@@ -269,7 +269,7 @@ Base.getindex(::IrrepTable, ::Type{CU₁}) = CU1Irrep
269
269
Base. convert (:: Type{CU1Irrep} , (j, s):: Tuple{Real,Integer} ) = CU1Irrep (j, s)
270
270
271
271
Base. IteratorSize (:: Type{SectorValues{CU1Irrep}} ) = IsInfinite ()
272
- function Base. iterate (:: SectorValues{CU1Irrep} , state= (0 , 0 ))
272
+ function Base. iterate (:: SectorValues{CU1Irrep} , state:: Tuple{Int,Int} = (0 , 0 ))
273
273
j, s = state
274
274
if iszero (j) && s == 0
275
275
return CU1Irrep (j, s), (j, 1 )
0 commit comments