From 88351d75544c016febb313657ae0d3af7698698f Mon Sep 17 00:00:00 2001 From: Benedikt Kloss Date: Thu, 1 Feb 2024 20:31:30 -0500 Subject: [PATCH] Access vertextype by function instead of via where in type definition. --- src/treetensornetworks/projttns/projttnsum.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/treetensornetworks/projttns/projttnsum.jl b/src/treetensornetworks/projttns/projttnsum.jl index 59c1a5ca..cd1cdf72 100644 --- a/src/treetensornetworks/projttns/projttnsum.jl +++ b/src/treetensornetworks/projttns/projttnsum.jl @@ -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