Skip to content

Commit

Permalink
fix single arg fuse (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho authored Mar 30, 2024
1 parent 7ad41f6 commit 726c044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spaces/vectorspaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Return a single vector space of type `S` that is isomorphic to the fusion produc
individual spaces `V₁`, `V₂`, ..., or the spaces contained in `P`.
"""
function fuse end
fuse(V::ElementarySpace) = V
fuse(V::ElementarySpace) = isdual(V) ? flip(V) : V
function fuse(V₁::VectorSpace, V₂::VectorSpace, V₃::VectorSpace...)
return fuse(fuse(fuse(V₁), fuse(V₂)), V₃...)
end
Expand Down

0 comments on commit 726c044

Please sign in to comment.