Skip to content

Commit

Permalink
render mpem3from2 less specialized
Browse files Browse the repository at this point in the history
  • Loading branch information
abraunst committed Jan 25, 2025
1 parent 0e9c32a commit 2601bc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/mpems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
default_truncator(::Type{<:AbstractMPEM2}) = TruncThresh(1e-6)
4 changes: 2 additions & 2 deletions src/stationary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
end

0 comments on commit 2601bc9

Please sign in to comment.