Skip to content

Commit 0b4f890

Browse files
committed
isone for BimoduleSectors
1 parent d274967 commit 0b4f890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bimodulesector.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ function Base.one(a::BimoduleSector)
182182
return typeof(a)(a.i, a.i, _get_dual_cache(typeof(a))[1][a.i])
183183
end
184184

185+
Base.isone(a::BimoduleSector) = leftone(a) == a == rightone(a)
186+
185187
function Base.one(::Type{<:BimoduleSector})
186188
throw(ArgumentError("one of Type BimoduleSector doesn't exist"))
187189
end

0 commit comments

Comments
 (0)