Skip to content

Commit d92e2f8

Browse files
leburgelclaude
andcommitted
Set the inner line and the first vertex of a braided tree outside the loops over the multiplicities
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5822446 commit d92e2f8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/fusiontrees/braiding_manipulations.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,17 @@ function artin_braid!(
193193
for c′ in _artin_channels(a, b, d, e)
194194
Rmat2 = inv ? Rsymbol(d, a, c′)' : Rsymbol(a, d, c′)
195195
Fmat = Fsymbol(d, a, b, e, c′, c)
196+
inner′ = TupleTools.setindex(inner, c′, i - 1)
196197
for σ in axes(Rmat2, 1)
198+
vertices_σ = TupleTools.setindex(vertices, σ, i - 1)
197199
for λ in axes(Fmat, 2)
198200
coeff = zero(oneT)
199201
for ρ in axes(Rmat1, 2), κ in axes(Rmat2, 2)
200202
coeff += Rmat1[ν, ρ] * conj(Fmat[κ, λ, μ, ρ]) *
201203
conj(Rmat2[σ, κ])
202204
end
203205
iszero(coeff) && continue
204-
vertices′ = TupleTools.setindex(vertices, σ, i - 1)
205-
vertices′ = TupleTools.setindex(vertices′, λ, i)
206-
inner′ = TupleTools.setindex(inner, c′, i - 1)
206+
vertices′ = TupleTools.setindex(vertices_σ, λ, i)
207207
f′ = FusionTree{I}(uncoupled′, coupled′, isdual′, inner′, vertices′)
208208
row = row!(rows, (f′, f₂))
209209
@inbounds U[row, col] = coeff

0 commit comments

Comments
 (0)