Skip to content

Commit 8c60b70

Browse files
committed
fixup! implement "vectorized" fusiontree manipulations
1 parent a90d42f commit 8c60b70

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/fusiontrees/uncouplediterator.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function fusiontrees(iter::OuterTreeIterator{I,N₁,N₂}) where {I,N₁,N₂}
1919
trees = Vector{Tuple{F₁,F₂}}(undef, 0)
2020
for c in blocksectors(iter), f₁ in fusiontrees(iter.uncoupled[1], c, iter.isdual[1]),
2121
f₂ in fusiontrees(iter.uncoupled[2], c, iter.isdual[2])
22-
2322
push!(trees, (f₁, f₂))
2423
end
2524
return trees
@@ -211,10 +210,10 @@ end
211210
const _FSTransposeKey{I,N₁,N₂} = Tuple{<:OuterTreeIterator{I},Index2Tuple{N₁,N₂}}
212211

213212
@cached function _fstranspose(key::_FSTransposeKey{I,N₁,N₂})::Tuple{OuterTreeIterator{I,N₁,
214-
N₂},
215-
Matrix{sectorscalartype(I)}} where {I,
216-
N₁,
217-
N₂}
213+
N₂},
214+
Matrix{sectorscalartype(I)}} where {I,
215+
N₁,
216+
N₂}
218217
fs_src, (p1, p2) = key
219218

220219
N = N₁ + N₂
@@ -321,9 +320,9 @@ end
321320
const _FSBraidKey{I,N₁,N₂} = Tuple{<:OuterTreeIterator{I},Index2Tuple{N₁,N₂},Index2Tuple}
322321

323322
@cached function _fsbraid(key::_FSBraidKey{I,N₁,N₂})::Tuple{OuterTreeIterator{I,N₁,N₂},
324-
Matrix{sectorscalartype(I)}} where {I,
325-
N₁,
326-
N₂}
323+
Matrix{sectorscalartype(I)}} where {I,
324+
N₁,
325+
N₂}
327326
fs_src, (p1, p2), (l1, l2) = key
328327

329328
p = linearizepermutation(p1, p2, numout(fs_src), numin(fs_src))

0 commit comments

Comments
 (0)