Skip to content

Commit

Permalink
one-line show of UniformScalingMap
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Jun 18, 2020
1 parent a27df6a commit fde7260
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ function _show(io::IO, A::BlockDiagonalMap)
end
function _show(io::IO, J::UniformScalingMap)
s = "$(J.λ)"
if occursin(r"\w+\s*[\+\-]\s*\w+", s)
s = " ($s)"
else
s = " $s"
end
print(io, "\n$s")
print(io, " with scaling factor: $s")
end

# helper functions
Expand Down

0 comments on commit fde7260

Please sign in to comment.