Skip to content

Commit

Permalink
Access vertextype by function instead of via where in type definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Feb 2, 2024
1 parent a90bb03 commit 88351d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/treetensornetworks/projttns/projttnsum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ ProjTTNSum
"""
struct ProjTTNSum{V} <: AbstractProjTTN{V}
terms::Vector{AbstractProjTTN{V}}
function ProjTTNSum(terms::Vector{<:AbstractProjTTN{V}}) where {V}
return new{V}(terms)
function ProjTTNSum(terms::Vector{<:AbstractProjTTN})
return new{eltype(terms)}(terms)
end
end

Expand Down

0 comments on commit 88351d7

Please sign in to comment.