Skip to content

Commit bb54699

Browse files
committed
Fix fix
1 parent 45e12d4 commit bb54699

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/tensors/braidingtensor.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ struct BraidingTensor{T,S} <: AbstractTensorMap{T,S,2,2}
2828
# partial construction: only construct rowr and colr when needed
2929
end
3030
end
31-
function BraidingTensor{T}(V1::S, V2::S, adjoint::Bool=false) where {T,S}
31+
function BraidingTensor{T}(V1::S, V2::S, adjoint::Bool=false) where {T,S<:IndexSpace}
3232
return BraidingTensor{T,S}(V1, V2, adjoint)
3333
end
3434
function BraidingTensor{T}(V1::IndexSpace, V2::IndexSpace, adjoint::Bool=false) where {T}
3535
return BraidingTensor{T}(promote(V1, V2)..., adjoint)
3636
end
3737
function BraidingTensor(V1::IndexSpace, V2::IndexSpace, adjoint::Bool=false)
38+
return BraidingTensor(promote(V1, V2)..., adjoint)
39+
end
40+
function BraidingTensor(V1::S, V2::S, adjoint::Bool=false) where {S<:IndexSpace}
3841
T = BraidingStyle(sectortype(S)) isa SymmetricBraiding ? Float64 : ComplexF64
39-
return BraidingTensor{T}(V1, V2, adjoint)
42+
return BraidingTensor{T,S}(V1, V2, adjoint)
4043
end
4144
function BraidingTensor(V::HomSpace, adjoint::Bool=false)
4245
domain(V) == reverse(codomain(V)) ||

0 commit comments

Comments
 (0)