Skip to content

Commit b4b838e

Browse files
committed
specify modules for some functions
1 parent 38001e1 commit b4b838e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bimodulesector.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,28 +336,28 @@ function Base.oneunit(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
336336
end
337337

338338
# oneunit for spaces whose elements all belong to the same sector
339-
function rightoneunit(S::GradedSpace{<:BimoduleSector})
339+
function TensorKit.rightoneunit(S::GradedSpace{<:BimoduleSector})
340340
allequal(a.j for a in sectors(S)) ||
341341
throw(ArgumentError("sectors of $S do not have the same rightone"))
342342

343343
sector = rightone(first(sectors(S)))
344344
return spacetype(S)(sector => 1)
345345
end
346346

347-
function rightoneunit(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
347+
function TensorKit.rightoneunit(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
348348
@assert !isempty(S) "Cannot determine type of empty space"
349349
return SumSpace(rightoneunit(first(S.spaces)))
350350
end
351351

352-
function leftoneunit(S::GradedSpace{<:BimoduleSector})
352+
function TensorKit.leftoneunit(S::GradedSpace{<:BimoduleSector})
353353
allequal(a.i for a in sectors(S)) ||
354354
throw(ArgumentError("sectors of $S do not have the same leftone"))
355355

356356
sector = leftone(first(sectors(S)))
357357
return spacetype(S)(sector => 1)
358358
end
359359

360-
function leftoneunit(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
360+
function TensorKit.leftoneunit(S::SumSpace{<:GradedSpace{<:BimoduleSector}})
361361
@assert !isempty(S) "Cannot determine type of empty space"
362362
return SumSpace(leftoneunit(first(S.spaces)))
363363
end
@@ -412,6 +412,6 @@ function TensorKit.FusionTree(uncoupled::Tuple{<:I,Vararg{I}}) where {I<:Bimodul
412412
end
413413

414414
# this one might also be overkill, since `FusionTreeIterator`s don't check whether the fusion is allowed
415-
function fusiontrees(uncoupled::Tuple{I,Vararg{I}}) where {I<:BimoduleSector}
415+
function TensorKit.fusiontrees(uncoupled::Tuple{I,Vararg{I}}) where {I<:BimoduleSector}
416416
return throw(ArgumentError("coupled sector must be provided for $I fusion"))
417417
end

0 commit comments

Comments
 (0)