Skip to content

Commit 17dd12e

Browse files
committed
update leftunit and rightunit
1 parent 16d7faf commit 17dd12e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fusiontrees/fusiontreeblocks.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function bendright(src::FusionTreeBlock)
107107

108108
for (col, (f₁, f₂)) in enumerate(fusiontrees(src))
109109
c = f₁.coupled
110-
a = N₁ == 1 ? leftone(f₁.uncoupled[1]) :
110+
a = N₁ == 1 ? leftunit(f₁.uncoupled[1]) :
111111
(N₁ == 2 ? f₁.uncoupled[1] : f₁.innerlines[end])
112112
b = f₁.uncoupled[N₁]
113113

@@ -170,7 +170,7 @@ function bendleft(src::FusionTreeBlock)
170170

171171
for (col, (f₂, f₁)) in enumerate(fusiontrees(src))
172172
c = f₁.coupled
173-
a = N₁ == 1 ? leftone(f₁.uncoupled[1]) :
173+
a = N₁ == 1 ? leftunit(f₁.uncoupled[1]) :
174174
(N₁ == 2 ? f₁.uncoupled[1] : f₁.innerlines[end])
175175
b = f₁.uncoupled[N₁]
176176

@@ -246,7 +246,7 @@ function foldright(src::FusionTreeBlock)
246246
@inbounds U[row, col] = factor
247247
else
248248
if N₁ == 1
249-
cset = (leftone(c1),) # or rightone(a)
249+
cset = (leftunit(c1),) # or rightunit(a)
250250
elseif N₁ == 2
251251
cset = (f₁.uncoupled[2],)
252252
else
@@ -319,7 +319,7 @@ function foldleft(src::FusionTreeBlock)
319319
@inbounds U[row, col] = conj(factor)
320320
else
321321
if N₁ == 1
322-
cset = (leftone(c1),) # or rightone(a)
322+
cset = (leftunit(c1),) # or rightunit(a)
323323
elseif N₁ == 2
324324
cset = (f₁.uncoupled[2],)
325325
else
@@ -470,7 +470,7 @@ function artin_braid(src::FusionTreeBlock{I, N, 0}, i; inv::Bool = false) where
470470
a, b = uncoupled[i], uncoupled[i + 1]
471471
uncoupled′ = TupleTools.setindex(uncoupled, b, i)
472472
uncoupled′ = TupleTools.setindex(uncoupled′, a, i + 1)
473-
coupled′ = rightone(src.uncoupled[1][N])
473+
coupled′ = rightunit(src.uncoupled[1][N])
474474

475475
isdual = src.isdual[1]
476476
isdual′ = TupleTools.setindex(isdual, isdual[i], i + 1)

0 commit comments

Comments
 (0)