We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NewSU2Irrep
findindex
getindex
1 parent 7a99cbc commit d99c4a3Copy full SHA for d99c4a3
test/newsectors.jl
@@ -75,9 +75,4 @@ end
75
Base.hash(s::NewSU2Irrep, h::UInt) = hash(s.j, h)
76
Base.isless(s1::NewSU2Irrep, s2::NewSU2Irrep) = isless(s1.j, s2.j)
77
78
-function Base.getindex(::SectorValues{NewSU2Irrep}, i::Int)
79
- return 1 <= i ? NewSU2Irrep(half(i - 1)) : throw(BoundsError(values(NewSU2Irrep), i))
80
-end
81
-TensorKitSectors.findindex(::SectorValues{NewSU2Irrep}, s::NewSU2Irrep) = twice(s.j) + 1
82
-
83
end # module NewSectors
0 commit comments