|
57 | 57 |
|
58 | 58 | # Show |
59 | 59 | #------ |
60 | | -function Base.summary(io::IO, t::AdjointTensorMap) |
61 | | - return print(io, "AdjointTensorMap(", codomain(t), " ← ", domain(t), ")") |
62 | | -end |
63 | | -function Base.show(io::IO, t::AdjointTensorMap) |
64 | | - if get(io, :compact, false) |
65 | | - print(io, "AdjointTensorMap(", codomain(t), " ← ", domain(t), ")") |
66 | | - return |
67 | | - end |
68 | | - println(io, "AdjointTensorMap(", codomain(t), " ← ", domain(t), "):") |
69 | | - if sectortype(t) === Trivial |
70 | | - Base.print_array(io, t[]) |
71 | | - println(io) |
72 | | - elseif FusionStyle(sectortype(t)) isa UniqueFusion |
73 | | - for (f₁, f₂) in fusiontrees(t) |
74 | | - println(io, "* Data for sector ", f₁.uncoupled, " ← ", f₂.uncoupled, ":") |
75 | | - Base.print_array(io, t[f₁, f₂]) |
76 | | - println(io) |
77 | | - end |
78 | | - else |
79 | | - for (f₁, f₂) in fusiontrees(t) |
80 | | - println(io, "* Data for fusiontree ", f₁, " ← ", f₂, ":") |
81 | | - Base.print_array(io, t[f₁, f₂]) |
82 | | - println(io) |
83 | | - end |
84 | | - end |
| 60 | +function Base.showarg(io::IO, t::AdjointTensorMap, toplevel::Bool) |
| 61 | + print(io, "adjoint(") |
| 62 | + Base.showarg(io, parent(t), false) |
| 63 | + print(io, ")") |
85 | 64 | return nothing |
86 | 65 | end |
0 commit comments