diff --git a/src/mpems.jl b/src/mpems.jl index 22255a1..54bc712 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 e2131c3..14d1dc8 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