We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 373cbb6 commit 3daceccCopy full SHA for 3dacecc
src/Extras/show.jl
@@ -182,16 +182,19 @@ end
182
183
## Operator
184
185
-summary(B::Operator) =
186
- string(typeof(B).name.name)*" : "*string(domainspace(B))*" → "*string(rangespace(B))
+function summary(io::IO, B::Operator)
+ s = string(typeof(B).name.name)*" : "*string(domainspace(B))*" → "*string(rangespace(B))
187
+ print(io, s)
188
+end
189
190
struct PrintShow
191
str
192
end
193
Base.show(io::IO,N::PrintShow) = print(io,N.str)
194
195
+show(io::IO, B::Operator) = summary(io, B)
196
-function show(io::IO,B::Operator;header::Bool=true)
197
+function show(io::IO, ::MIME"text/plain", B::Operator;header::Bool=true)
198
header && println(io,summary(B))
199
dsp=domainspace(B)
200
0 commit comments