Skip to content

Commit

Permalink
add generic fallback for _show
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Apr 3, 2020
1 parent b21ac80 commit a27df6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ end

# show
Base.show(io::IO, A::LinearMap) = (summary(io, A); _show(io, A))
_show(io::IO, ::LinearMap) = nothing
function _show(io::IO, A::FunctionMap{T,F,Nothing}) where {T,F}
print(io, "($(A.f); ismutating=$(A._ismutating), issymmetric=$(A._issymmetric), ishermitian=$(A._ishermitian), isposdef=$(A._isposdef))")
end
Expand Down

0 comments on commit a27df6a

Please sign in to comment.