Skip to content

Commit

Permalink
add a show method for the warped metric so it prints nicer on REPL
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Dec 20, 2024
1 parent 5d8a4ba commit f41fece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/manifolds/SegreWarpedMetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ function sectional_curvature(
(inner(M, p, u, u) * inner(M, p, v, v) - inner(M, p, u, v)^2)
end

function show(io::IO, ::WarpedMetric{A}) where {A}
return print(io, "WarpedMetric($A)")
end

function spherical_angle_sum(
M::MetricManifold{ℝ,Segre{ℝ,V},WarpedMetric{A}},
p,
Expand Down

0 comments on commit f41fece

Please sign in to comment.