From 726c04435df3883c56c5123ea8338bb47870eb73 Mon Sep 17 00:00:00 2001 From: Jutho Date: Sat, 30 Mar 2024 01:08:25 +0100 Subject: [PATCH] fix single arg fuse (#111) --- src/spaces/vectorspaces.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaces/vectorspaces.jl b/src/spaces/vectorspaces.jl index d8e764f0..0124868d 100644 --- a/src/spaces/vectorspaces.jl +++ b/src/spaces/vectorspaces.jl @@ -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