Skip to content

Commit

Permalink
Actually remove parametric type VT from function signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Jan 9, 2024
1 parent 07051d8 commit b0cd3f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/treetensornetworks/opsum_to_ttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function svdTTN(
root_vertex::VT;
mindim::Int=1,
maxdim::Int=typemax(Int),
cutoff::eps(coefficient_type) * 10,
cutoff=eps(coefficient_type) * 10,
)::TTN where {VT}
edgetype_sites = edgetype(sites)
coefficient_type = ITensors.determineValType(ITensors.terms(os))
Expand Down Expand Up @@ -232,8 +232,8 @@ function svdTTN(
end

function qn_svdTTN(

Check warning on line 234 in src/treetensornetworks/opsum_to_ttn.jl

View workflow job for this annotation

GitHub Actions / format

[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/treetensornetworks/opsum_to_ttn.jl:234:-function qn_svdTTN( src/treetensornetworks/opsum_to_ttn.jl:235:- os::OpSum, sites::IndsNetwork, root_vertex; kwargs... src/treetensornetworks/opsum_to_ttn.jl:236:-)::TTN src/treetensornetworks/opsum_to_ttn.jl:234:+function qn_svdTTN(os::OpSum, sites::IndsNetwork, root_vertex; kwargs...)::TTN
os::OpSum, sites::IndsNetwork, root_vertex::VT; kwargs...
)::TTN where {VT}
os::OpSum, sites::IndsNetwork, root_vertex; kwargs...
)::TTN
# Function barrier to improve type stability
coefficient_type = ITensors.determineValType(terms(os))
return qn_svdTTN(coefficient_type, os, sites, root_vertex; kwargs...)
Expand All @@ -243,11 +243,11 @@ function qn_svdTTN(
coefficient_type::Type{<:Number},
os::OpSum,
sites::IndsNetwork,
root_vertex::VT;
root_vertex;
mindim::Int=1,
maxdim::Int=typemax(Int),
cutoff::eps(coefficient_type) * 10,
)::TTN where {VT}
cutoff=eps(coefficient_type) * 10,
)::TTN
# check for qns on the site indices
#FIXME: this check for whether or not any of the siteindices has QNs is somewhat ugly
#FIXME: how are sites handled where some sites have QNs and some don't?
Expand Down

0 comments on commit b0cd3f6

Please sign in to comment.