From 2601bc93ed9cd5a02ed8175d32c530c789862e07 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Fri, 24 Jan 2025 21:19:48 +0100 Subject: [PATCH] render mpem3from2 less specialized --- src/mpems.jl | 6 +++--- src/stationary.jl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mpems.jl b/src/mpems.jl index 22255a1d..54bc7129 100644 --- a/src/mpems.jl +++ b/src/mpems.jl @@ -155,7 +155,7 @@ function mpem2(B::PeriodicMPEM3{F}) where {F} end -mpem3from2(::Type{MPEM2{F}}) where F = MPEM3 -mpem3from2(::Type{PeriodicMPEM2{F}}) where F = PeriodicMPEM3 +mpem3from2(::Type{<:MPEM2}) = MPEM3 +mpem3from2(::Type{<:PeriodicMPEM2}) = PeriodicMPEM3 -default_truncator(::Type{<:AbstractMPEM2}) = TruncThresh(1e-6) \ No newline at end of file +default_truncator(::Type{<:AbstractMPEM2}) = TruncThresh(1e-6) diff --git a/src/stationary.jl b/src/stationary.jl index e2131c3a..14d1dc8d 100644 --- a/src/stationary.jl +++ b/src/stationary.jl @@ -40,7 +40,7 @@ function mpem2(B::InfiniteUniformMPEM3{F}) where {F} return InfiniteUniformMPEM2{F}(D; z = B.z) end -mpem3from2(::Type{InfiniteUniformMPEM2{F}}) where F = InfiniteUniformMPEM3 +mpem3from2(::Type{<:InfiniteUniformMPEM2}) = InfiniteUniformMPEM3 #### Naive MPBP @@ -292,4 +292,4 @@ function (cb::CB_BPVUMPS)(bp::MPBPStationary, it::Integer, svd_trunc::SVDTrunc) next!(cb.prog, showvalues=[(:Δ,Δ), (:trunc, summary_compact(svd_trunc))]) flush(stdout) return Δ -end \ No newline at end of file +end