You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Show ComponentArray types (this is pretty hacky because something is broken when I try to do it normally)
30
-
Base.show(io::IO, ::MIME"text/plain", ::Type{ComponentArray{T,N,A,Ax}}) where {T,N,A,Ax} =print(io, "ComponentArray{$T,$N,$A,$Ax}") # make `typeof(u)` show the full type
31
-
Base.show(io::IO, ::Type{<:ComponentArray{T,N,<:Array}}) where {T,N} =print(io, "ComponentArray{$T,$N}") # do not pollute the stacktrace with verbose type printing
32
-
Base.show(io::IO, ::Type{<:ComponentArray{T,1,<:Array}}) where {T} =print(io, "ComponentVector{$T}")
33
-
Base.show(io::IO, ::Type{<:ComponentArray{T,2,<:Array}}) where {T} =print(io, "ComponentMatrix{$T}")
34
-
Base.show(io::IO, ::Type{<:ComponentArray{T,N,<:SubArray}}) where {T,N} =print(io, "ComponentArray{$T,$N,SubArray...}") # do not pollute the stacktrace with verbose type printing
35
-
Base.show(io::IO, ::Type{<:ComponentArray{T,1,<:SubArray}}) where {T} =print(io, "ComponentVector{$T,SubArray...}")
36
-
Base.show(io::IO, ::Type{<:ComponentArray{T,2,<:SubArray}}) where {T} =print(io, "ComponentMatrix{$T,SubArray...}")
_print_type_short(io, ::Type{<:ComponentArray{T,N,<:Array}}; color=:normal) where {T,N} =printstyled(io, "ComponentArray{$T,$N}"; color=color) # do not pollute the stacktrace with verbose type printing
32
+
_print_type_short(io, ::Type{<:ComponentArray{T,1,<:Array}}; color=:normal) where {T} =printstyled(io, "ComponentVector{$T}"; color=color)
33
+
_print_type_short(io, ::Type{<:ComponentArray{T,2,<:Array}}; color=:normal) where {T} =printstyled(io, "ComponentMatrix{$T}"; color=color)
34
+
_print_type_short(io, ::Type{<:ComponentArray{T,N,<:SubArray}}; color=:normal) where {T,N} =printstyled(io, "ComponentArray{$T,$N,SubArray...}"; color=color) # do not pollute the stacktrace with verbose type printing
35
+
_print_type_short(io, ::Type{<:ComponentArray{T,1,<:SubArray}}; color=:normal) where {T} =printstyled(io, "ComponentVector{$T,SubArray...}"; color=color)
36
+
_print_type_short(io, ::Type{<:ComponentArray{T,2,<:SubArray}}; color=:normal) where {T} =printstyled(io, "ComponentMatrix{$T,SubArray...}"; color=color)
0 commit comments