Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/states/infiniteweightpeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@
return sum(_singular_value_distance, zip(wts1.data, wts2.data)) / length(wts1)
end

function Base.show(io::IO, ::MIME"text/plain", wts::SUWeight)
println(io, typeof(wts))
for idx in CartesianIndices(wts.data)
println(io, Tuple(idx), ":")
for (k, b) in blocks(wts.data[idx])
println(io, k, " = ", diag(b))
end
end
return nothing

Check warning on line 60 in src/states/infiniteweightpeps.jl

View check run for this annotation

Codecov / codecov/patch

src/states/infiniteweightpeps.jl#L52-L60

Added lines #L52 - L60 were not covered by tests
end

"""
struct InfiniteWeightPEPS{T<:PEPSTensor,E<:PEPSWeight}

Expand Down
Loading