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 76f5ee3 commit 92edeaaCopy full SHA for 92edeaa
src/blockedtuple.jl
@@ -55,6 +55,14 @@ function Base.map(f, bt::AbstractBlockTuple)
55
return widened_constructorof(typeof(bt))(map(f, Tuple(bt)), Val(BL))
56
end
57
58
+function Base.show(io::IO, bt::AbstractBlockTuple)
59
+ return print(io, nameof(typeof(bt)), blocks(bt))
60
+end
61
+function Base.show(io::IO, ::MIME"text/plain", bt::AbstractBlockTuple)
62
+ println(io, typeof(bt))
63
+ return print(io, blocks(bt))
64
65
+
66
# Broadcast interface
67
Base.broadcastable(bt::AbstractBlockTuple) = bt
68
struct AbstractBlockTupleBroadcastStyle{BlockLengths,BT} <: Broadcast.BroadcastStyle end
0 commit comments