Skip to content

Commit fd0b8a3

Browse files
Simplify map(..., (co)domain) (#430)
1 parent aaa368c commit fd0b8a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/tensors/abstracttensor.jl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ Base.@propagate_inbounds function subblock(t::AbstractTensorMap, sectors::Tuple{
452452
c2 = length(s₂) == 0 ? unit(I) : (length(s₂) == 1 ? s₂[1] : first(⊗(s₂...)))
453453
c2 == c1 || throw(SectorMismatch("Not a valid fusion channel for this tensor"))
454454
end
455-
f₁ = FusionTree(s₁, c1, map(isdual, tuple(codomain(t)...)))
456-
f₂ = FusionTree(s₂, c1, map(isdual, tuple(domain(t)...)))
455+
f₁ = FusionTree(s₁, c1, map(isdual, codomain(t)))
456+
f₂ = FusionTree(s₂, c1, map(isdual, domain(t)))
457457
return @inbounds subblock(t, (f₁, f₂))
458458
end
459459
Base.@propagate_inbounds function subblock(t::AbstractTensorMap, sectors::Tuple)

0 commit comments

Comments
 (0)